*{
box-sizing:border-box;
margin:0;
padding:0;
font-family:Tahoma;
}

body{
min-height:100vh;
background:linear-gradient(135deg,#eef4fb,#dfe9f7);
padding:20px;
color:#1455a0;
}

.container{
width:100%;
max-width:1280px;
min-height:calc(100vh - 40px);
margin:auto;
background:#fff;
border-radius:25px;
padding:28px;
box-shadow:0 15px 40px rgba(0,0,0,0.1);
}

h1{
margin-bottom:25px;
font-size:28px;
text-align:right;
color:#1455a0;
font-weight:800;
}

.filter-box{
background:#f8fbff;
border:1px solid #dbe7f5;
border-radius:18px;
padding:18px;
margin-bottom:20px;
}

.filter-grid{
display:grid;
grid-template-columns:repeat(2, minmax(0, 1fr));
gap:16px;
}

.field{
display:flex;
flex-direction:column;
text-align:right;
}

.field label{
margin-bottom:8px;
font-weight:800;
font-size:16px;
color:#1455a0;
}

.field input,
.field select{
width:100%;
height:52px;
min-height:52px;
padding:0 14px;
border-radius:12px;
border:1px solid #cfd8e6;
font-size:17px;
font-weight:600;
background:#fff;
color:#1455a0;
outline:none;
}

.field input:focus,
.field select:focus{
border-color:#1455a0;
box-shadow:0 0 0 3px rgba(20,85,160,0.15);
background:#fff;
}

.filter-actions,
.copy-actions{
margin-top:18px;
display:grid;
grid-template-columns:1fr;
gap:12px;
}

.copy-actions{
margin-top:18px;
margin-bottom:15px;
}

.btn{
width:100%;
min-height:48px;
padding:13px 18px;
border:none;
border-radius:12px;
font-size:16px;
cursor:pointer;
font-weight:bold;
text-decoration:none;
display:inline-flex;
align-items:center;
justify-content:center;
}

.filter{
background:#facc15;
color:#713f12;
}

.clear{
background:#facc15;
color:#713f12;
}

.add{
background:#1455a0;
color:#fff;
}

.back{
background:#e5e7eb;
color:#1455a0;
}

.copy{
background:#1455a0;
color:#fff;
}

.select-all{
background:#1455a0;
color:#fff;
}

.unselect{
background:#1455a0;
color:#fff;
}

.btn:hover{
opacity:.9;
}

.alert{
margin-bottom:15px;
padding:12px;
border-radius:12px;
font-weight:bold;
text-align:center;
}

.alert.success{
background:#dcfce7;
color:#166534;
}

.alert.error{
background:#fee2e2;
color:#991b1b;
}

.copy-msg{
display:none;
margin-bottom:15px;
padding:12px;
border-radius:12px;
font-weight:bold;
text-align:center;
}

.copy-msg.success,
.copy-msg.error{
display:block;
}

.copy-msg.success{
background:#dcfce7;
color:#166534;
}

.copy-msg.error{
background:#fee2e2;
color:#991b1b;
}

.hidden-form{
display:none;
}

.page-info{
margin-bottom:12px;
text-align:center;
color:#5b6f8e;
font-weight:800;
}

.table-wrap{
width:100%;
overflow-x:auto;
border-radius:16px;
border:1px solid #dbe7f5;
}

table{
width:100%;
border-collapse:collapse;
table-layout:fixed;
min-width:1320px;
background:#fff;
}

th{
background:#1455a0;
color:#fff;
font-size:15px;
font-weight:800;
padding:14px 10px;
text-align:center;
white-space:nowrap;
border:1px solid #d6dde8;
}

td{
padding:13px 10px;
border:1px solid #d6dde8;
text-align:center;
font-size:15px;
font-weight:600;
color:#1455a0;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

.status-cell{
overflow:visible;
}

tbody tr:hover{
background:#f8fbff;
}

.row-check{
width:20px;
height:20px;
cursor:pointer;
accent-color:#1455a0;
}

.money{
direction:ltr;
font-weight:800;
}

.badge{
display:inline-flex;
align-items:center;
justify-content:center;
padding:7px 12px;
border-radius:999px;
font-size:14px;
font-weight:800;
}

.badge.sent{
background:#dcfce7;
color:#166534;
}

.badge.not-sent{
background:#fee2e2;
color:#991b1b;
}

.cancel-send-form{
margin-top:8px;
}

.cancel-send{
width:auto;
min-height:34px;
padding:7px 10px;
border-radius:10px;
font-size:12px;
background:#dc2626;
color:#fff;
white-space:nowrap;
}

.empty{
padding:25px;
font-size:17px;
font-weight:800;
color:#991b1b;
}

.pagination{
margin-top:18px;
display:flex;
gap:8px;
justify-content:center;
flex-wrap:wrap;
}

.page-link{
padding:8px 14px;
border-radius:10px;
background:#edf3fb;
color:#1455a0;
text-decoration:none;
font-weight:800;
}

.page-link.active{
background:#2d7fe0;
color:#fff;
}

.select2-container{
width:100% !important;
}

.select2-container .select2-selection--single{
height:52px !important;
border-radius:12px !important;
border:1px solid #cfd8e6 !important;
background:#fff !important;
display:flex !important;
align-items:center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
color:#1455a0 !important;
font-size:17px !important;
font-weight:600 !important;
line-height:52px !important;
padding-right:14px !important;
padding-left:35px !important;
width:100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow{
height:52px !important;
left:10px !important;
right:auto !important;
}

.select2-dropdown{
border:1px solid #cfd8e6 !important;
border-radius:12px !important;
overflow:hidden;
}

.select2-search__field{
height:40px !important;
font-size:15px !important;
border-radius:8px !important;
padding:8px !important;
}

@media (max-width:900px){
.filter-grid{
grid-template-columns:1fr;
gap:14px;
}
}

@media (max-width:700px){
body{
padding:12px;
}

.container{
min-height:calc(100vh - 24px);
padding:18px;
border-radius:20px;
}

h1{
font-size:24px;
}

.field input,
.field select{
height:50px;
min-height:50px;
font-size:16px;
padding:0 12px;
}

.field input[type="date"]{
height:50px;
line-height:50px;
-webkit-appearance:none;
appearance:none;
}

.table-wrap{
border-radius:14px;
}

table{
min-width:1050px;
}

th,
td{
font-size:14px;
padding:12px 8px;
}

.cancel-send{
min-height:30px;
padding:6px 8px;
font-size:11px;
border-radius:8px;
max-width:100%;
}

.select2-container .select2-selection--single{
height:50px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
line-height:50px !important;
font-size:16px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow{
height:50px !important;
}
}
.edit-disabled{
display:inline-flex;
align-items:center;
justify-content:center;
min-height:36px;
padding:8px 10px;
border-radius:10px;
background:#fee2e2;
color:#991b1b;
font-size:13px;
font-weight:800;
white-space:nowrap;
}
