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

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

.container{
max-width:1000px;
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;
}

.search-box{
margin-bottom:22px;
display:flex;
flex-direction:column;
text-align:right;
background:#f8fbff;
border:1px solid #dbe7f5;
border-radius:16px;
padding:16px;
}

.search-box label{
margin-bottom:8px;
font-weight:700;
font-size:16px;
color:#1455a0;
}

.form-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:18px;
grid-template-areas:
"company date"
"currency amount"
"beneficiary sender"
"notes notes"
"status status"
"accountType accountName"
"docType docNumber"
"phone phone";
}

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

.field:nth-child(1){grid-area:company;}
.field:nth-child(2){grid-area:date;}
.field:nth-child(3){grid-area:currency;}
.field:nth-child(4){grid-area:amount;}
.field:nth-child(5){grid-area:beneficiary;}
.field:nth-child(6){grid-area:sender;}
.field:nth-child(7){grid-area:notes;}
.field:nth-child(8){grid-area:status;}
.field:nth-child(9){grid-area:accountType;}
.field:nth-child(10){grid-area:accountName;}
.field:nth-child(11){grid-area:docType;}
.field:nth-child(12){grid-area:docNumber;}
.field:nth-child(13){grid-area:phone;}

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

.field input,
.field select,
.field textarea,
.search-box 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 textarea{
height:100px;
min-height:100px;
padding:14px;
resize:vertical;
}

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

.field input[readonly],
.field textarea[readonly]{
background:#f1f5f9;
color:#334155;
cursor:not-allowed;
}

.money-input{
background:#f1f5f9 !important;
font-weight:700 !important;
font-size:18px !important;
color:#1455a0 !important;
direction:ltr;
text-align:right;
}

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

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

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

.actions{
margin-top:25px;
display:flex;
gap:12px;
justify-content:center;
flex-wrap:wrap;
}

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

.save{
background:#10b981;
color:#fff;
}

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

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

.btn:hover{
opacity:.9;
}

/* Select2 */
.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:700px){

body{
padding:12px;
}

.container{
padding:20px;
border-radius:20px;
}

h1{
font-size:24px;
}

.form-grid{
grid-template-columns:1fr;
grid-template-areas:
"company"
"date"
"currency"
"amount"
"beneficiary"
"sender"
"notes"
"status"
"accountType"
"accountName"
"docType"
"docNumber"
"phone";
gap:16px;
}

.field input,
.field select,
.field textarea,
.search-box 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;
}

.field textarea{
height:95px;
min-height:95px;
padding:12px;
}

.money-input{
font-size:17px !important;
}

.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;
}

.actions{
flex-direction:column;
}

.btn{
width:100%;
}

}
.top-actions{
margin-bottom:18px;
display:flex;
justify-content:flex-start;
}