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

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

.container{
width:calc(100vw - 24px);
max-width:1280px;
min-height:calc(100vh - 24px);
margin:auto;
position:relative;
background:#fff;
border-radius:22px;
padding:32px 36px;
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;
}

.form-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:18px;
grid-template-areas:
"date cashbox"
"movement movement"
"payment account"
"usd usd"
"iqd iqd"
"notes notes";
}

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

.field:nth-child(1){grid-area:date;}
.field:nth-child(2){grid-area:cashbox;}
.field:nth-child(3){grid-area:movement;}
.field:nth-child(4){grid-area:payment;}
.field:nth-child(5){grid-area:account;}
.field:nth-child(6){grid-area:usd;}
.field:nth-child(7){grid-area:iqd;}
.field:nth-child(8){grid-area:notes;}

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

.field input,
.field select,
.field textarea{
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 select{
direction:rtl;
text-align:right;
}

.date-input{
direction:ltr;
text-align:center;
line-height:52px;
color-scheme:light;
}

.field input:disabled,
.field input[aria-disabled="true"],
.field input[readonly],
.field input[aria-readonly="true"]{
background:#eef3f8;
color:#6f7f92;
cursor:not-allowed;
opacity:1;
}

.field textarea{
height:100px;
min-height:100px;
padding:14px;
resize:vertical;
}

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

.field input::placeholder,
.field textarea::placeholder{
color:#9aa9bd;
font-size:15px;
font-weight:400;
}

.amount-field input{
max-width:360px;
}

.money-input{
background:#f8fbff !important;
font-weight:700 !important;
font-size:18px !important;
color:#1455a0 !important;
}

.money-input:focus{
background:#eef5ff !important;
border-color:#1455a0 !important;
box-shadow:0 0 0 3px rgba(20,85,160,0.15) !important;
}

.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;
flex-direction:column;
gap:12px;
justify-content:center;
width:100%;
}

.btn{
width:100%;
min-height:52px;
padding:13px 28px;
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;
}

.save{
background:#2d7fe0;
color:#fff;
}

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

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

.delete{
background:#dc2626;
color:#fff;
}

.btn:hover{
opacity:.9;
}

.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;
z-index:9999 !important;
direction:rtl;
text-align:right;
}

.select2-results__option{
direction:rtl;
text-align:right;
font-size:16px;
font-weight:600;
color:#1455a0;
padding:10px 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected]{
background:#e8f1fc !important;
color:#1455a0 !important;
}

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

@supports (-webkit-touch-callout:none){
.date-input{
height:52px;
min-height:52px;
line-height:normal;
-webkit-appearance:none;
appearance:none;
}
}

@media (max-width:1024px){
body{
padding:8px;
}

.container{
width:calc(100vw - 16px);
min-height:calc(100vh - 16px);
padding:26px;
border-radius:20px;
}
}

@media (max-width:700px){

body{
padding:8px;
}

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

h1{
font-size:24px;
}

.form-grid{
grid-template-columns:1fr;
grid-template-areas:
"date"
"cashbox"
"movement"
"payment"
"account"
"usd"
"iqd"
"notes";
gap:16px;
}

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

.date-input{
height:50px;
min-height:50px;
line-height:normal;
-webkit-appearance:none;
appearance:none;
}

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

.amount-field input{
max-width:100%;
}

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