@font-face
{
font-family: AdobeArabic;
src: url(../img/fonts/AdobeArabic-Bold.ttf);
src: url(../img/fonts/AdobeArabic-Regular.ttf);
}
@font-face
{
font-family: ENTEZARF;
src: url(../img/fonts/Arbaeen.ttf);
src: url(../img/fonts/Arbaeen.woff);
}
body{

	background:url(../img/back.png) repeat;
	background-color:#EEE;
	background-position: unset;
	background-size: cover;
	background-repeat:no-repeat;
	margin:0px;
	padding:0px;
	font-family:Tahoma, Geneva, sans-serif;
	font-size:15px;
}
/* Let's get this party started */
::-webkit-scrollbar {
    width: 10px;
	height: 10px;
}
 .my-icon{
	 background-image: url("../img/ems.jpg");
	 background-size: 90%;
	 border-radius: 15px;
	 background-repeat: no-repeat;
	 background-position: center;
 }
/* Track */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    -webkit-border-radius: 3px;
    border-radius: 3px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
    -webkit-border-radius: 3px;
    border-radius: 3px;
    background: #E1BDBE; 
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
	cursor:pointer;
}
::-webkit-scrollbar-thumb:window-inactive {
	background:#6C1C58; 
}
select{ text-align:right; border:none; border-radius:2px; color:#000;  box-shadow: 0px 0px 3px #000000;font-size:12px; background-color:#D3D1C2; padding-left:12px; font-family:Tahoma, Geneva, sans-serif; margin:2px;}
select optgroup{border: thin solid #000; border-radius:2px; color:#000;  margin:3px; background-color:#FC6;}
input[type~="button"],input[type~="submit"]{ font-family:Tahoma, Geneva, sans-serif; border:none; border-radius:2px; color:#000; min-width:80px;   margin:3px;box-shadow: 2px 2px 3px #000000;}

input[type~="button"]:hover,input[type~="submit"]:hover{ box-shadow: 3px 3px 8px #000000;}

input[type~="submit"]{background-color:#9C0;}

input[type~="button"]:active , input[type~="submit"]:active{box-shadow: 0px 0px 5px #000000;}

input[type~="text"],input[type~="password"] {  text-align:right; border:none; border-radius:2px; color:#000;  box-shadow: 0px 0px 3px #000000;font-size:12px; background-color:#D3D1C2; padding-left:12px; font-family:Tahoma, Geneva, sans-serif; margin:2px;}
.simpinput{border:none; background:none; border-bottom:dotted;  width:70px; box-shadow:none;}
fieldset{border:none;}
.tblforms input{width:70px;}
.costomBtn{background-position:right; background-repeat:no-repeat; padding-right:35px; height:35px;font-size:12px;}
.prevLevel{ background-image:url(../img/img.php?size=32x32&id=right_arrow); }
.nextLevel{ background-image:url(../img/img.php?size=32x32&id=left_arrow); }
.printer{ background-image:url(../img/img.php?size=32x32&id=printer); }
.newFrm{ background-image:url(../img/img.php?size=32x32&id=delete_item); }
.ok{ background-image:url(../img/img.php?size=32x32&id=accept_item); }
.login{ background-image:url(../img/img.php?size=32x32&id=login); }
.recycl{ background-image:url(../img/img.php?size=32x32&id=recycl); }
.lock{ background-image:url(../img/img.php?size=32x32&id=lock); }
.chart{ background-image:url(../img/img.php?size=32x32&id=chart); }
.zoom_in_magnifier{ background-image:url(../img/img.php?size=32x32&id=zoom_in_magnifier); }
.zoom_out_magnifier{ background-image:url(../img/img.php?size=32x32&id=zoom_out_magnifier); }

.alink{font-family:Tahoma, Geneva, sans-serif; border:none; border-radius:2px; color:#000; min-width:80px;   margin:3px;box-shadow: 2px 2px 3px #000000;}
#captchaRefresh{ cursor:pointer}
#captchaImg{ text-align:center; padding:3px; border:#333 thin solid; box-shadow:0px 0px 5px #333333; border-radius:4px; width:89%; background:#930}
#captchaImg input{ font-size:16px; width:120px;}

#yearName{ top:-20px; left:10px; position:fixed; opacity:0; z-index:100;}
#ribon{ top:20px; height:100px; opacity:.85; background-color:#030558; position:fixed; width:100%; z-index:1;}
#ProductTitle{  top:-10px; right:25px; position:fixed; opacity:0; z-index:99;}
#madeInIran{ width:398px; height:118px; top:10px; left:195px; position:fixed; z-index:2; }
#madeInImg{text-shadow:5px 5px 20px #000}
#footer{ background-color:#EFEFEF; width:100%; height:25px; border-bottom-right-radius:4px;  border-bottom-left-radius:4px; font:status-bar; font-size:10px; direction:rtl; text-align:right;z-index:95; overflow:hidden;}
.userInf{ float:left; border-right:#000000 solid thin; margin:1px; padding:2px}
#LoginUserInf{width:30%; border:none; float:left; overflow:hidden; direction:rtl; font:status-bar; font-size:12px;}
.menu li{ margin:0px; border:#333 thin solid; padding:2px; list-style:none;  box-shadow:0px 0px 2px #000000; font:menu; font-size:14px; text-align:right; cursor:pointer; alignment-adjust:central; float:right; opacity:0.7; background:#C9C;}
#mainContainer{border:#000 solid thin ; width:98%; height:70%; background:none; border-radius:10px; left:1%; position:fixed; top:140px; opacity:0;z-index:8; overflow:hidden; padding:10px; direction:rtl}
#mainContainer:hover{opacity:1; overflow:auto}
.copyRight{ background:url(../img/copyright_tiny.png) no-repeat right; padding-right:18px; margin-right:10px; font-size:8px;}
.footerTime{ margin:auto; width:200px; text-align:right; color:#000000; }
#op_time{background:url(../img/time.png) no-repeat right; padding-right:20px; margin-right:5px;}
#op_date{background:url(../img/date.png) no-repeat right; padding-right:20px; margin-right:10px;}
.pages{ background:none; overflow:auto; padding:10px; direction:rtl; }
.bgsImg{ position:fixed; right:1500px;}
.r-600{ position:fixed; right:-600px;}
.l-600{ position:fixed; left:-600px;}
.plan{ border:solid thin #000000;}
.info{ border:solid thin #000000;}
.tableLister{border-collapse:collapse; margin:10px; table-layout: fixed;}
tr{}
.seirPrcPage{border-collapse:collapse; margin:0px; table-layout: fixed;}
.seirPrcPage2{border-collapse:collapse; margin:0px; table-layout: fixed;}
.tableLister td {border:#666 solid thin; padding:2px; word-wrap:break-word;  }
td ul{list-style-type:none}
.Err{ text-align:center; margin-top:5px; padding:2px; color:#066; }
.ERRBOX{ height:auto; width:auto; background:#F30; color:#FFF; position:absolute; top:20px; left:40%; alignment-adjust:central;}
th{ background:#d3d1c2; color:#000; font-weight:bold; height:25px; text-align:center; border:#666 solid thin; font-size:10px; }
tr.freez{position:absolute; top:20px; background:#000; color:#FFF; font-weight:bold; height:25px; display:none}
td{border:#666 solid thin;}
.datePicker td{ border:none;} 
#VRG_orderPage .title{ margin:4px; padding:2px; text-shadow:0px 0px 5px #FF0000;}
#VRG_orderPage{ background:#FDEEF3; border-radius:5px;}

#PID_0{ background:url(../img/img.php?size=48x48&id=home) center right no-repeat #030558;}
#PID_1{ background:url(../img/img.php?size=48x48&id=note_accept) center right no-repeat #90C;}
#PID_2{ background:url(../img/img.php?size=48x48&id=shopping_cart) center right no-repeat #FC3;}
#PID_3{ background:url(../img/img.php?size=48x48&id=info) center right no-repeat #00F;}
#PID_4{ background:url(../img/img.php?size=48x48&id=email) center right no-repeat #0F0;}
#PID_5{ background:url(../img/img.php?size=48x48&id=process) center right no-repeat #F00;}
#PID_6{ background:url(../img/img.php?size=48x48&id=world_globe) center right no-repeat #666;}
#PID_7{ background:url(../img/img.php?size=48x48&id=calculator) center right no-repeat #630;}
.menu li div{ text-shadow:0px 0px 5px #000000; color:#FFF}

#p0{ }
.orderTb{border-collapse:separate}
.orderTb td{ min-width:80px; max-width:150px; border:none; padding:0px; padding-right:4px; margin:0px; height:20px; background:#FFF; font-size:12px}
.orderProcess{border:none;}
.orderProcess td{ margin:0px; padding:0px; background-position:center; background-repeat:no-repeat; width:120px; height:62px; font-size:11px; color:#FFF; font-weight:bold; padding-right:10px; vertical-align:middle; border:none; }
.rahcode{ font-size:14px; font-weight:normal; color:#00F; border:#000 thin solid;}
.productDetail div{ padding:3px; border:#666 solid thin; margin:2px;}
div.prompt{  margin:0px 10px 0px 10px; direction:rtl; box-shadow:0px 0px 5px #00FF00; background: #075985; padding:5px}
.closeBtn{background:url(../img/close.png) #6C1C58; border-radius:10px; height:25px; width:25px; float:left; margin-left:-15px; margin-top:-15px; cursor:pointer; z-index:999999; }
.closeBtn:hover{ box-shadow: 0px 0px 5px #FF0000; background: url(../img/close.png) red; border-radius:8px;}
.fullBtn{background:url(../img/full.png) #6C1C58; border-radius:10px; height:25px; width:25px; float:left; margin-left:1px; margin-top:-15px; cursor:pointer; z-index:999999; }
.fullBtn:hover{ box-shadow: 0px 0px 5px #FF0000; background: url(../img/full.png) red; border-radius:8px;}
.fullBtn2{background:url(../img/close.png) #6C1C58; border-radius:10px; height:25px; width:25px; float:left; margin-left:-15px; margin-top:-15px; cursor:pointer; z-index:999999; display:none; }
.fullBtn2:hover{ box-shadow: 0px 0px 5px #FF0000;  background: url(../img/close.png) red; border-radius:8px;}
.helpBtn{background:url(../img/help.png) #6C1C58; border-radius:10px; height:25px; width:25px; float:left; margin-left:2px; margin-top:-15px; cursor:pointer; z-index:999999; }
.helpBtn:hover{ box-shadow: 0px 0px 5px #FF0000; background: url(../img/help.png) red; border-radius:8px;}
.ErrIcon{ background:url(../img/err.png) no-repeat bottom right; height:15px; width:20px; border:none; }
.okIcon{ background:url(../img/ok.png) no-repeat bottom right; height:15px; width:20px;}

.pishFaktor{border:#666 medium solid; font-family:"B Nazanin", Arial, Verdana; border-collapse:collapse;font-size:12px;}
td.rahcode , td.date{ width:120px; height:100}
td.pishFaktorHeader{  width:288px; max-width:200px; height:100;}
 span.onvan ,th.radif,th.fee,th.sharh,th.nums,th.price{  font-size:10px;}
 span.tozih { font-size:13px; font-weight:bold; }
 th.radif{ width:30px; }
th.sharh{ width:150px;}
th.fee{width:100px;}
th.nums{ width:50px;}
th.price{ width:150px;}
td.tells{ width:190px;}

td.footer{ height:40px;}
div.tozih{margin:5px; padding:5px; background:#CCC; font-weight:normal; font-size:12px; }
div.pardakht{margin:5px; padding:5px; background:#6F9;font-weight:normal; font-size:12px; cursor:pointer; }
#Orderform_ins{ padding:10px;}

.home_element{ position:absolute; max-width:500px; max-height:500px; opacity:0; }
.dpic{right:0px; top:150px;}
.thpic{left:0px; top:300px;}
.titlPics{left:0px; top:400px;}
.exitSysBtn{background:url(../img/exitbtnhover.png) no-repeat left; width:33px; height:20px; padding-left:10px; margin:0px; font-size:12px;}
.exitSysBtn:hover{background:url(../img/exitbtn.png) no-repeat left; color:#F00 }
.usernamediv{background:url(../img/usr.png) no-repeat right; width:130px; height:20px; padding-right:22px; margin:1px; font-size:12px; overflow:hidden;}


div.DeskWork{
	float:right;
	background:#09F;
	margin-right:10px;
	margin-bottom:10px;
	-webkit-transition:opacity 1s,box-shadow 1s, border-bottom-left-radiusborder-radius 1s; /* For Safari 3.1 to 6.0 */
    transition:opacity 1s,box-shadow 1s, border-bottom-left-radius 1s;
	position:relative;
	text-shadow: 0px 0px 5px #00FF00;
	cursor:pointer;
	font-size:24px;
	font-family:"ENTEZARF";
	text-align:center;
	box-shadow:2px 2px 10px #000000;
}
div.DeskWork:hover{ border:none;  border-bottom-left-radius:40px; opacity:.7;box-shadow:0px 0px 10px #000000;  }
div.TABcrt{ margin-left:0px;  margin-top:5px; margin-bottom:5px;}
.TABcrt .menu{width:140px; float:right; margin:0px; padding:0px;padding-top:10px; position:relative; opacity:1; font-size:10px; top:10px; bottom:auto; }
.TABcrt .conents { background-color:#EFEFEF; overflow:auto; opacity:1; border:none; border-radius:10px; min-height:300px; padding:15px; margin-right:150px; margin-left:10px;}
.TABcrt_Items{ cursor:pointer; width:95px; height:auto; border: none; border-top-right-radius:10px; margin:5px; margin-left:0px; background-color:#CCCCCC; padding:10px;box-shadow: 3px 3px 5px #FFFF99; background-position:right; background-repeat:no-repeat; font:Tahoma, Geneva, sans-serif; font-weight:bolder; color:#000000; padding-right:35px;}
.TABcrt_Items_active{border:none;border-left: none;background-color:#efefef;margin-left: 0px;margin-right: 10px;box-shadow:none; color:#666;}
input.inputDatex{width:70px;}

div.opcls{ background:url(../img/submenu.gif) no-repeat center; cursor:pointer; height:20px; width:20px; float:right;}
div.opcls2{ background:url(../img/submenu2.gif) no-repeat center; height:20px; width:20px;}

span.opcls{ background:url(../img/submenu.gif) no-repeat center; cursor:pointer}
span.opcls2{ background:url(../img/submenu2.gif) no-repeat center; }
.subFilters{display:none; background:#C9C; border-radius:4px; padding-bottom:2px; max-width:200px}
.filterBox{ font-size:12px;position:absolute; right:170px; background:#efefef; padding-right:10px; width:20px;
z-index:999;  height:85%; overflow:auto; border: thin solid #060606; border-right:none;  box-shadow:-5px 5px 10px #000000; }
.filterBox_inner{ display:none;}
#lister_table{ padding-right:40px; } 
.toolKey{ width:48px; height:48px; margin:3px; border-radius:4px; box-shadow:0px 0px 5px; float:right; cursor:pointer; text-align:center; }
.wp_big{width:30px; height:30px; font-size:20px; word-break:break-all; font-family: ENTEZARF;}
.wp_small{width:auto; height:16px; font-size:10px; word-break:break-all; }
.toolKey:active{ box-shadow:0px 0px 1px;}
#print_page{ }
#excel_page{ background:url(../img/ICON/blossom/48x48/excel.png) center no-repeat;}
#print_area{ margin:0px; padding:0px}
/* The score report has up to 25 columns; give it a full landscape print page. */
@page percase-score {
    size: A4 landscape;
    margin: 8mm;
}
@media print {
    #print_area:has(.percase-score-table) {
        page: percase-score;
        width: 100%;
        overflow: visible;
    }
    #print_area .percase-score-table {
        width: 100%;
        margin: 8px 0;
        table-layout: auto;
        border-collapse: collapse;
    }
    #print_area .percase-score-table :is(th, td) {
        width: auto !important;
        min-width: 0;
        padding: 1px;
        font-size: 6.5pt;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    #print_area .percase-score-table tr > :is(:nth-child(2), :nth-child(5)) {
        min-width: 60px;
    }
    #print_area .percase-score-table tr > :nth-child(3) {
        min-width: 52px;
    }
    #print_area .percase-score-table tr > :is(:nth-child(4), :nth-child(6)) {
        min-width: 28px;
    }
    #print_area .percase-score-table [dir="ltr"] {
        white-space: nowrap;
    }
    #print_area .percase-score-table th[dir="ltr"] {
        font-size: 6pt;
    }
    #print_area .percase-score-table thead th {
        font-size: 6pt;
        overflow-wrap: normal;
    }
    #print_area .percase-score-table thead {
        display: table-header-group;
    }
    #print_area .percase-score-table tr {
        break-inside: avoid;
    }
    #print_area:has(.percase-score-table) input[type="submit"] {
        display: none;
    }
}
.tbPageNavigat{  box-shadow:0px 0px 5px #000; margin:6px; padding-left:3px; padding-right:3px; cursor:pointer}
.tbPageNavigat:active{  box-shadow:0px 0px 1px #000;}
.freez2{ cursor:pointer}
.active{ background:#9F0; }
.dialog, .dialogForm{ direction:rtl; background:#FFF; box-shadow:5px 5px 10px #000000; padding:10px; z-index:0; font-size:12px; max-width:950px;  }
.dialogclose{position:relative; top:10px; left:-30px; display: block}
.recycler{}
.comboList{ height:auto; max-height:200px; width:150px;}
.singleSelect , .FreeCmbSelect, .multiSelect , .assesssingleSelect, .ajaxSelect{text-align:center; border:#003 solid thin; cursor:pointer; list-style-type:none; margin:1px;}
.singleSelect:hover, .FreeCmbSelect:hover .multiSelect:hover , .assesssingleSelect:hover, .ajaxSelect:hover { background:#9F0}
.singleSelectHover, .multiSelectHover , .FreeCmbSelectHover .assesssingleSelectHover, .ajaxSelectHover{ background:#9F0}
.singleSelect:active, .FreeCmbSelect:active .multiSelect:active , .multiSelectHover2 , .assesssingleSelect:active, .ajaxSelectHover2{ background:#F00}
li input[type="radio"]{}
#assessForms{ margin:20px; background:#FCF; padding:10px}

#prompt_conents{overflow:scroll;  }
.tableLister td{ width:70px; font-size:10px;}
.widthAuto{width:auto;}
.tableLister th{ font-size:11px;}
.small td{font-size:7px;width:auto;text-align:center; vertical-align:middle;}
.small th{font-size:7px;width:auto;text-align:center; vertical-align:middle;}

.minitool{float:right; margin:2px; width:18px; height:18px; cursor:pointer;background:url(../img/ICON/blossom/32x32/note.png) no-repeat center;}
.minitools{display:none; position:absolute;}
.trash{background:url(../img/ICON/blossom/32x32/trash.png) no-repeat center;}
.activate{background:url(../img/ICON/blossom/32x32/accept_item.png) no-repeat center;}
.edit{background:url(../img/ICON/blossom/32x32/edit_item.png) no-repeat center;}
.recycl{background:url(../img/ICON/blossom/32x32/recycl.png) no-repeat center;}
.detail{background:url(../img/ICON/blossom/32x32/note.png) no-repeat center;}
.back{background:url(../img/ICON/blossom/48x48/right_arrow.png) no-repeat center;}
.gavahi{background:url(../img/ICON/blossom/48x48/learn.png) no-repeat center;}
.remove_item{background:url(../img/ICON/blossom/48x48/remove_item.png) no-repeat center;}
.delete_item{background:url(../img/ICON/blossom/48x48/delete_item.png) no-repeat center;}
.remove{background:url(../img/ICON/blossom/48x48/trash.png) no-repeat center;}
.remove:hover{ border:#F00 solid thin;}
.zoom_out{ background:none; background:url(../img/img.php?size=48x48&id=zoom_out_magnifier) center no-repeat ; width:45px; height:45px; border:none}
.zoom_in{ background:none; background:url(../img/img.php?size=48x48&id=zoom_in_magnifier) center no-repeat ; width:45px; height:45px; border:none}
.reporter_chrtbtn{ background:none; float:right; margin:3px;}
.reporter_report{ background:#FFC; margin:0px; display:none; border:#000 solid medium;}
.reporter_title{ background:#333; color:#FFF; padding:3px; margin-top:3px; cursor:pointer;}
.fieldDiv{ float:right;}
.fieldClDi{ margin:3px; border:#CCC thin solid; padding:3px;}
.clear{ clear:both}
.clear2{ width:350px; height:auto; overflow:auto; clear:both}
#closeFilterbox{background:url(../img/close.png) #6C1C58; border-radius:10px; height:25px; width:25px; float:left; margin-left:5px; margin-top:5px; cursor:pointer; z-index:999999;display:none}
#openFilterbox{background:url(../img/open.png) no-repeat center #6C1C58; border-radius:10px; height:25px; width:25px; float:left; margin-left:5px; margin-top:5px; cursor:pointer; z-index:999999;  }
.highliter:hover{ background:#A59BE6;}
.detailView{border-collapse:separate; border:none; background:none;}
.detailView tr{ background:#FFF; margin:5px; padding:5px; font-size:12px;border:thin solid #CCC;}
.detailView td{ background:none; border:none; padding:5px;}
.itbx{ display:none; font-size:10px; min-width:150px;}
.percasePenaltyDetails > summary {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 12px;
    border: 1px solid #cbdde9;
    border-radius: 8px;
    background: #f0f7fb;
    color: #24546e;
    cursor: pointer;
    list-style: none;
}
.percasePenaltyDetails > summary::-webkit-details-marker { display: none; }
.percasePenaltyDetails[open] > summary > span { display: inline-block; transform: rotate(180deg); }
.percasePenaltyContent {
    min-width: 150px;
    max-width: 280px;
    padding: 8px 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
}
.percaseItemsHost:not(:empty) { width: 340px; max-width: 70vw; }
.percaseItemsEditor { padding: 10px 0; text-align: right; white-space: normal; }
.percaseItemsEditor form { display: grid; gap: 8px; margin: 8px 0; padding: 10px; }
.percaseItemsEditor form > .fieldClDi { float: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; width: auto; margin: 0; }
.percaseItemsEditor input[type="text"] { box-sizing: border-box; max-width: 100%; }
.percaseItemsEditor .percaseItemsReadonly { margin: 8px 0; padding: 0; border: 0; }
.percaseItemsReadonly .ComboText, .percaseItemsReadonly input[type="submit"] { display: none; }
.percaseItemsSavedNotice { padding: 10px; background: #eaf6ef; color: #236b49; }
@media print { .percaseItemsHost { display: none; } }
.editbx{ cursor:pointer; font-size:10px; padding:5px; background:#CCC; border:solid thin #000000; margin:1px }
.editbx:hover{ background:#999}
.hidden{background:none; border:none;}
.percaseitbx{ border-collapse:collapse;}
.percaseitbx td{ margin:3px; padding:5px; background-color:#FFF4F9; font-size:11px; vertical-align:top;}
.percaseCertBtn{ margin:2px; float:right; width:15px; height:15px;}
.startCertPercase{background:url(../img/img.php?size=24x24&id=accept_item) center center no-repeat; width:24px; height:24px; float:right;}
.stopCertPercase{background:url(../img/img.php?size=24x24&id=info) center center no-repeat; width:24px; height:24px; float:right;}

.percaseitbx2{ border-collapse:collapse; background-color:#FFF4F9;}
.percaseitbx2 tr:hover{ background:#CFF}
.percaseitbx2 td{ margin:3px; padding:2px; font-size:10px; border:thin solid #000000; }
.Ok{background:url(../img/img.php?size=24x24&id=accept_item) center center no-repeat; }
.notOk{background:url(../img/img.php?size=24x24&id=delete_item) center center no-repeat; }
.req_t{ width:100px} .req_n{ width:40px} .req_u{ width:60px} .req_c{ width:150px} 
.help_dialog{ direction:rtl; background:#DABCED; box-shadow:10px 10px 20px #000000; padding:10px; z-index:99999; font-size:12px; max-width:380px; position:fixed; left:5px; top:5px; border-radius:5px; border:double #AEB3EF;}
#help_play{background:url(../img/play.png) no-repeat center; background-size: 17px 17px; width:20px; height:20px;}
#help_pause{background:url(../img/pause.png) no-repeat center; background-size: 17px 17px; width:20px; height:20px;}
#help_stop{background:url(../img/stop.png) no-repeat center; background-size: 17px 17px; width:20px; height:20px;}
#help_content{ overflow:auto; max-height:400px; border: inset; padding:5px}
#help_video{  border: inset; padding:4px}
.notify_p{background:#C80000; border-radius:14px; height:25px; width:25px; float:right; margin-right:-5px; margin-top:-5px; cursor:pointer; color:#FFFFFF; font-size:16px; text-align:center; padding-top:2px;}
.notify_pp{background:#C80000; border-radius:8px; height:15px; width:15px; float:left; margin-left:-10px; margin-bottom:-35px; cursor:pointer; color:#FFFFFF; font-size:10px; text-align:center; padding-top:1px;}
.CertBtns{ float:right;}
.seirPrcPage{font-family: B Nazanin ,  B Zar , Arial;  margin:auto; padding:0px; }
.seirPrcPage td{ border:none; padding:4px;}
.seirPrcTd td{ border:thin #000000 solid;}
.border_top{ border-top:thin #000000 solid;}
.seirPrcPage2{ margin:0px; text-align:center}
.seirPrcPage2 td{ border:thin solid #000000; vertical-align:central; text-align:center; max-height:30px; padding:1px;}
div.dialogInerContent{ max-height:600px; overflow:auto; margin:0px; padding:5px;}
.deactivatorDiv{ position:absolute; width:100%; height:100%; left:0px; top:0px; background-color:#000000; opacity:0.7;z-index: 9999}
#quran { 
	background: #FFFFFF;
    border: 40px solid transparent;
    padding: 5px;
	direction: rtl;
	text-align: center;
    -webkit-border-image: url(../img/m2.png) 50 round; /* Safari 3.1-5 */
    -o-border-image: url(../img/m2.png) 50 round; /* Opera 11-12.1 */
    border-image: url(../img/m2.png) 50 round;
	 width:100%; 
}

span.arabic{
		font-family:"AdobeArabic";
    	font-size: 28px;
	text-shadow: 5px 5px 5px #00FF00;
}
span.farsi{
		font-family:"AdobeArabic";
	    font-size: 24px;

}
.dash_Comparative{
font-size:9px;
text-align:center;
}
.loginForm{
	background-color: red!important;
}
/* Shared table presentation. Screen-only so printed forms keep their layout.
   Calendar widgets, shift grids and fixed-size documents have separate rules. */
@media screen {
    @font-face {
        font-family: "VazirmatnTable";
        src: url("../img/fonts/Vazirmatn-Variable.woff2") format("woff2");
        font-weight: 100 900;
        font-style: normal;
        font-display: swap;
    }

    table:not(.datePicker):not(:where(.workPlans, .workPlansA, .seirPrcPage, .seirPrcPage *, .seirPrcPage2, .seirPrcPage2 *, .orderProcess, .orderProcess *, .datePicker, .datePicker *, .ui-datepicker *, .pdp-default *, .pdp-dark *, jdp-container *)) {
        border-collapse: separate;
        border-spacing: 0;
        border: 1px solid #dce5ed;
        border-radius: 10px;
        background-color: #fff;
        color: #263b4d;
        font-family: "VazirmatnTable", Tahoma, Geneva, sans-serif;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.9;
        direction: rtl;
        text-align: start;
        font-variant-numeric: tabular-nums;
        letter-spacing: normal;
        word-spacing: normal;
        box-shadow: 0 3px 14px rgba(31, 55, 77, .06);
    }

    table.tableLister,
    table.detailView,
    table.percaseitbx,
    table.percaseitbx2,
    table.ravanfrm-table,
    table.tableForm,
    table.ezafkar {
        width: 100%;
        margin: 12px 0;
        table-layout: auto;
    }

    table:not(.datePicker):not(:where(.workPlans, .workPlansA, .seirPrcPage, .seirPrcPage *, .seirPrcPage2, .seirPrcPage2 *, .orderProcess, .orderProcess *, .datePicker, .datePicker *, .ui-datepicker *, .pdp-default *, .pdp-dark *, jdp-container *)) > :is(thead, tbody, tfoot) > tr > :is(th, td) {
        border: 0;
        border-bottom: 1px solid #e5ecf2;
        border-inline-end: 1px solid #edf1f5;
        padding: 10px 12px;
        font-family: "VazirmatnTable", Tahoma, Geneva, sans-serif;
        font-size: 14px;
        line-height: 1.9;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
        hyphens: none;
        vertical-align: middle;
    }

    table:not(.datePicker):not(:where(.workPlans, .workPlansA, .seirPrcPage, .seirPrcPage *, .seirPrcPage2, .seirPrcPage2 *, .orderProcess, .orderProcess *, .datePicker, .datePicker *, .ui-datepicker *, .pdp-default *, .pdp-dark *, jdp-container *)) > :is(thead, tbody, tfoot) > tr > th {
        background-color: #edf4f8;
        color: #25465d;
        font-weight: 600;
        text-align: center;
        height: auto;
        padding-block: 12px;
    }

    table:not(.datePicker):not(:where(.workPlans, .workPlansA, .seirPrcPage, .seirPrcPage *, .seirPrcPage2, .seirPrcPage2 *, .orderProcess, .orderProcess *, .datePicker, .datePicker *, .ui-datepicker *, .pdp-default *, .pdp-dark *, jdp-container *)) > tbody > tr:nth-child(even):not(:where([style], .active, .tr1, .tr2)) {
        background-color: #f7fafc;
    }

    table:not(.datePicker):not(:where(.workPlans, .workPlansA, .seirPrcPage, .seirPrcPage *, .seirPrcPage2, .seirPrcPage2 *, .orderProcess, .orderProcess *, .datePicker, .datePicker *, .ui-datepicker *, .pdp-default *, .pdp-dark *, jdp-container *)) > tbody > tr:hover:not(:where([style], .active)) {
        background-color: #edf5fb;
    }

    table.tableLister > tbody > tr.active {
        background-color: #def2e9;
        box-shadow: inset -3px 0 #23866a;
    }

    table.tableLister > tbody > tr > td {
        width: auto;
        min-width: 48px;
        word-break: normal;
        overflow-wrap: break-word;
    }

    table.tableLister > tbody > tr > td:first-child {
        min-width: 28px;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    table.tableLister > tbody > tr > td.minitoolX {
        min-width: 96px;
        white-space: nowrap;
    }

    table.tableLister .freez2 {
        font: inherit;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
    }

    /* Form controls and multi-line content use the same table typography. */
    table:not(.datePicker):not(:where(.workPlans, .workPlansA, .seirPrcPage, .seirPrcPage *, .seirPrcPage2, .seirPrcPage2 *, .orderProcess, .orderProcess *, .datePicker, .datePicker *, .ui-datepicker *, .pdp-default *, .pdp-dark *, jdp-container *)) :is(input, select, textarea, button) {
        font-family: "VazirmatnTable", Tahoma, Geneva, sans-serif;
        font-size: inherit;
    }

    table.tableLister :is(td, th) > p {
        margin-block: 0 .5em;
    }

    table.tableLister :is(td, th) > p:last-child {
        margin-bottom: 0;
    }

    table.tableLister :is(time, code, span[dir="ltr"]) {
        font-family: inherit;
        direction: ltr;
        unicode-bidi: isolate;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    /* Keep legacy cell colours and icons that communicate application state. */
    table.percaseitbx > tbody > tr > td:not([style]):not([class]) {
        background-color: transparent;
    }

    table.detailView > tbody > tr > td:first-child:not([style]) {
        background-color: #f0f5f9;
        color: #34546b;
        font-weight: bold;
    }

    table.small > :is(thead, tbody, tfoot) > tr > :is(th, td),
    table.dash_Comparative > :is(thead, tbody, tfoot) > tr > :is(th, td) {
        padding: 6px 8px;
        font-size: 12px;
        line-height: 1.8;
    }

    /* Retain the size, selection behaviour and status colours of shift cells. */
    table.workPlans,
    table.workPlansA {
        border-color: #c9d7e2;
        font-family: "VazirmatnTable", Tahoma, Geneva, sans-serif;
        font-variant-numeric: tabular-nums;
        box-shadow: 0 2px 10px rgba(31, 55, 77, .06);
    }

    table.workPlans > tbody > tr > :is(th, td),
    table.workPlansA > tbody > tr > :is(th, td) {
        border-color: #c9d7e2;
        font-family: "VazirmatnTable", Tahoma, Geneva, sans-serif;
    }

    table.workPlans > tbody > tr > .names {
        font-size: 11px;
    }

    table.workPlans > tbody > tr > th,
    table.workPlansA > tbody > tr > th {
        color: #25465d;
    }

    .tableLister .minitool {
        width: 24px;
        height: 24px;
        margin: 2px;
        border-radius: 5px;
        background-size: 20px 20px;
    }

    .tableLister .minitool:hover {
        background-color: #dfeaf3;
        box-shadow: 0 0 0 1px #b7cddd;
    }

    .tbPageNavigat {
        display: inline-block;
        min-width: 26px;
        padding: 5px 9px;
        margin: 4px;
        border: 1px solid #d4e0e9;
        border-radius: 6px;
        background-color: #fff;
        color: #31556e;
        font-family: "VazirmatnTable", Tahoma, Geneva, sans-serif;
        font-size: 13px;
        line-height: 1.7;
        text-align: center;
        box-shadow: 0 1px 3px rgba(31, 55, 77, .05);
    }

    .tbPageNavigat:hover {
        border-color: #90b5cf;
        background-color: #edf5fb;
    }

    .tableLister :is(input, select, textarea, button, a):focus-visible,
    .tbPageNavigat:focus-visible {
        outline: 2px solid #287ba8;
        outline-offset: 2px;
    }
}

@media screen and (max-width: 640px) {
    table.tableLister:not(:where(.small, .dash_Comparative)) > :is(thead, tbody, tfoot) > tr > :is(th, td),
    table.detailView > tbody > tr > td,
    table.percaseitbx > tbody > tr > td,
    table.percaseitbx2 > tbody > tr > td {
        padding: 8px;
        font-size: 13px;
    }
}

/* Daily unit reports have wide readable cells, independent of shift entry grids. */
.unit-work-report {
    clear: both;
    width: 100%;
    min-width: 0;
    color: #29475c;
    font-family: "VazirmatnTable", Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.8;
}
.unit-work-heading { margin: 14px 0 12px; text-align: right; }
.unit-work-heading h3 { margin: 0 0 4px; color: #234e68; font-size: 18px; }
.unit-work-heading p { margin: 0; color: #637b8d; font-size: 13px; }
.unit-work-heading p > span { margin-inline-start: 12px; }
.unit-work-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; font-size: 12px; }
.unit-work-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.unit-work-legend bdi { min-width: 24px; border-radius: 4px; background: #e7f1f7; color: #21587b; text-align: center; font-weight: bold; }
.unit-work-scroll {
    width: 100%;
    max-height: 720px;
    max-height: min(720px, 70vh);
    overflow: auto;
    border: 1px solid #d6e3ec;
    border-radius: 10px;
    scrollbar-color: #a7bdcc #f0f5f8;
}
.unit-work-scroll:focus-visible { outline: 2px solid #287ba8; outline-offset: 2px; }
table.unit-work-table {
    width: 100%;
    min-width: calc(144px + var(--unit-work-columns, 1) * 280px);
    margin: 0;
    border: 0;
    border-radius: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    box-shadow: none;
}
.unit-work-date-col { width: 144px; }
table.unit-work-table > thead { position: sticky; top: 0; z-index: 3; }
table.unit-work-table > thead > tr > th {
    padding: 12px 16px;
    background: #e8f1f7;
    border: 0;
    border-bottom: 1px solid #cddde9;
    border-inline-end: 1px solid #d6e3ec;
    color: #254e69;
    font-size: 14px;
    text-align: center;
}
table.unit-work-table > tbody > tr { --unit-work-row-bg: #fff; }
table.unit-work-table > tbody > tr:nth-child(even) { --unit-work-row-bg: #f6f9fc; }
table.unit-work-table > tbody > tr:hover { --unit-work-row-bg: #edf5fa; }
table.unit-work-table > tbody > tr > :is(th, td) {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid #e3ecf3;
    border-inline-end: 1px solid #e3ecf3;
    background: var(--unit-work-row-bg);
    color: #29475c;
    font-size: 14px;
    line-height: 1.8;
    vertical-align: middle;
}
table.unit-work-table .unit-work-date {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    border-inline-end: 2px solid #cfdeea;
    text-align: center;
    white-space: nowrap;
}
table.unit-work-table .unit-work-date > span { display: block; font-size: 12px; font-weight: 400; color: #647e90; }
table.unit-work-table .unit-work-date > strong { display: block; font-size: 14px; font-weight: 600; }
table.unit-work-table > tbody > tr.is-holiday > th { background: #fff4e9; color: #98551d; }
.unit-work-people { display: flex; flex-wrap: wrap; gap: 8px; }
.unit-work-person {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1 1 200px;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid #dce7ef;
    border-radius: 6px;
    background: #fff;
}
.unit-work-name { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.unit-work-badge { flex-shrink: 0; min-width: 26px; padding: 1px 5px; border-radius: 4px; background: #e5f1f7; color: #245e80; font-size: 12px; font-weight: 700; text-align: center; }
.unit-work-badge.is-other { background: #fff0e2; color: #97500f; }
.unit-work-empty { padding: 12px; color: #708595; font-size: 13px; }

@media screen and (max-width: 640px) {
    .unit-work-date-col { width: 100px; }
    table.unit-work-table { min-width: calc(100px + var(--unit-work-columns, 1) * 240px); }
    table.unit-work-table > tbody > tr > :is(th, td) { padding: 8px; font-size: 13px; }
    .unit-work-legend { gap: 6px 12px; }
}
@media print {
    .unit-work-scroll { max-height: none; overflow: visible; border: 0; }
    table.unit-work-table { min-width: 0; table-layout: auto; border-collapse: collapse; }
    table.unit-work-table > thead { display: table-header-group; position: static; }
    table.unit-work-table .unit-work-date { position: static; }
    table.unit-work-table > thead > tr > th,
    table.unit-work-table > tbody > tr > :is(th, td) { padding: 5px; border: 1px solid #999; font-size: 10px; }
    table.unit-work-table tr { break-inside: avoid; }
    .unit-work-person { flex-basis: auto; padding: 2px 5px; border-color: #bbb; }
    .unit-work-badge { font-size: 10px; }
}

/* Shift summary: keep labels and personnel visible while reading wide reports. */
.shift-summary {
    margin: 22px 0 12px;
    border: 1px solid #d6e2eb;
    border-radius: 12px;
    background: #fff;
    color: #263b4d;
    font-family: "VazirmatnTable", Tahoma, sans-serif;
    font-size: 13px;
    line-height: 1.8;
    text-align: right;
    clear: both;
}

.shift-summary-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
}

.shift-summary-heading h3 {
    margin: 0 0 4px;
    color: #234b64;
    font-size: 17px;
    font-weight: 700;
}

.shift-summary-heading p { margin: 0; color: #5d7284; font-size: 12px; }
.shift-summary-count { display: inline-block; margin-inline-start: 16px; color: #234b64; }
.shift-summary-print {
    flex-shrink: 0;
    padding: 7px 18px;
    border: 1px solid #b8cfdd;
    border-radius: 7px;
    background: #f3f8fb;
    color: #234b64;
    font: inherit;
    cursor: pointer;
}
.shift-summary-print:hover { background: #e5f0f6; border-color: #7da7c0; }
.shift-summary-print:focus-visible,
.shift-summary-scroll:focus-visible { outline: 2px solid #287ba8; outline-offset: 2px; }
.shift-summary-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 8px 20px;
    border-top: 1px solid #e5edf3;
    color: #607587;
    font-size: 12px;
}
.shift-summary-scroll {
    max-height: 560px;
    max-height: min(560px, 70vh);
    overflow: auto;
    position: relative;
    border-top: 1px solid #d6e2eb;
    border-radius: 0 0 12px 12px;
    scrollbar-color: #a7bdcc #f0f5f8;
    scrollbar-width: auto;
}

@media screen {
    table.shift-summary-table {
        width: 100%;
        min-width: 1660px;
        margin: 0;
        border: 0;
        border-radius: 0;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: fixed;
        box-shadow: none;
    }
    .shift-summary-code { width: 112px; }
    .shift-summary-family { width: 128px; }
    .shift-summary-name { width: 88px; }
    table.shift-summary-table thead { position: sticky; top: 0; z-index: 4; }
    table.shift-summary-table > thead > tr > th {
        padding: 10px 8px;
        border: 0;
        border-bottom: 1px solid #d6e2eb;
        border-inline-end: 1px solid #e1eaf1;
        background: #f0f5f9;
        color: #34566f;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.8;
        vertical-align: middle;
        overflow-wrap: normal;
    }
    table.shift-summary-table > thead > tr.shift-summary-groups > th {
        padding: 8px;
        background: #e4eef5;
        color: #254b65;
        font-size: 13px;
    }
    table.shift-summary-table > thead > tr.shift-summary-groups > th:last-child {
        background: #dcefe9;
        color: #23614e;
    }
    .shift-summary-columns th > span { display: block; font-size: 11px; font-weight: 400; }
    table.shift-summary-table > tbody > tr { --shift-row-bg: #fff; }
    table.shift-summary-table > tbody > tr:nth-child(even) { --shift-row-bg: #f6f9fc; }
    table.shift-summary-table > tbody > tr:hover { --shift-row-bg: #eaf3f9; }
    table.shift-summary-table > tbody > tr > td {
        width: auto;
        min-width: 0;
        padding: 12px 8px;
        border: 0;
        border-bottom: 1px solid #e5edf3;
        border-inline-end: 1px solid #edf2f6;
        background: var(--shift-row-bg);
        color: #314d62;
        font-size: 13px;
        line-height: 1.8;
        text-align: center;
        white-space: nowrap;
        overflow-wrap: normal;
        font-variant-numeric: tabular-nums;
    }
    table.shift-summary-table > tbody > tr > td:is(:nth-child(2), :nth-child(3)) {
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: right;
        font-weight: 600;
    }
    table.shift-summary-table > tbody > tr > td:first-child,
    table.shift-summary-table > tbody > tr > td:nth-child(n+14) {
        direction: ltr;
        unicode-bidi: isolate;
    }
    table.shift-summary-table > tbody > tr > td:nth-child(14),
    table.shift-summary-table > tbody > tr > td:nth-child(18) { font-weight: 700; }
    table.shift-summary-table > tbody > tr > td:is(:nth-child(5), :nth-child(9), :nth-child(13)) {
        border-inline-end: 2px solid #d6e2eb;
    }
    table.shift-summary-table > tbody > tr > td:nth-child(18) { background: #edf7f3; }
    table.shift-summary-table > tbody > tr > td.shift-summary-amount > bdi {
        display: inline-block;
        min-width: 40px;
        padding: 2px 8px;
        border-radius: 5px;
        font-weight: 700;
    }
    table.shift-summary-table .is-positive > bdi { color: #176447; background: #e1f2e9; }
    table.shift-summary-table .is-negative > bdi { color: #a32e38; background: #fce9ec; }
    table.shift-summary-table .is-zero > bdi { color: #657889; background: #edf1f5; }
    table.shift-summary-table > tbody > tr > td:nth-child(-n+3):not([colspan]),
    table.shift-summary-table > thead > tr.shift-summary-columns > th:nth-child(-n+3) {
        position: sticky;
        z-index: 2;
    }
    table.shift-summary-table > tbody > tr > td:first-child:not([colspan]),
    table.shift-summary-table > thead > tr.shift-summary-columns > th:first-child { inset-inline-start: 0; }
    table.shift-summary-table > tbody > tr > td:nth-child(2),
    table.shift-summary-table > thead > tr.shift-summary-columns > th:nth-child(2) { inset-inline-start: 112px; }
    table.shift-summary-table > tbody > tr > td:nth-child(3),
    table.shift-summary-table > thead > tr.shift-summary-columns > th:nth-child(3) {
        inset-inline-start: 240px;
        border-inline-end: 2px solid #bdcfdd;
    }
    table.shift-summary-table > tbody > tr > td.shift-summary-empty {
        padding: 32px 16px;
        color: #657889;
        direction: rtl;
    }
}

@media screen and (max-width: 640px) {
    .shift-summary-heading { align-items: flex-start; gap: 8px; padding: 12px; }
    .shift-summary-heading h3 { font-size: 15px; }
    .shift-summary-count { display: block; margin: 4px 0 0; }
    .shift-summary-print { padding: 6px 12px; }
    .shift-summary-note { padding: 8px 12px; }
    table.shift-summary-table > tbody > tr > td:nth-child(-n+3),
    table.shift-summary-table > thead > tr.shift-summary-columns > th:nth-child(-n+3) {
        position: static;
    }
}

@media print {
    .shift-summary { margin: 0; border: 0; font-size: 9px; }
    .shift-summary-heading { padding: 4px 0; }
    .shift-summary-heading h3 { font-size: 13px; }
    .shift-summary-heading p, .shift-summary-note { font-size: 9px; }
    .shift-summary-print { display: none; }
    .shift-summary-scroll { overflow: visible; max-height: none; border: 0; }
    table.shift-summary-table { width: 100%; min-width: 0; margin: 0; border-collapse: collapse; table-layout: auto; }
    table.shift-summary-table thead { display: table-header-group; position: static; }
    table.shift-summary-table tr { break-inside: avoid; }
    table.shift-summary-table th, table.shift-summary-table td {
        position: static;
        width: auto;
        padding: 3px;
        border: 1px solid #999;
        font-size: 8px;
        text-align: center;
        white-space: normal;
    }
    .shift-summary-columns th > span { display: block; }
}

/* Shared dropdown presentation. Preserve the existing markup and selection handlers. */
@media screen {
    input[type="text"]:is(.comboText, .multicomboText, .comboTextFree, .assesscomboText, .comboText_ajax) {
        box-sizing: border-box;
        max-width: 100%;
        margin-block: 4px;
        border: 1px solid #cbd8e4;
        border-radius: 9px;
        background-color: #fff !important;
        background-position: left 12px center !important;
        background-repeat: no-repeat;
        color: #203a50;
        box-shadow: 0 1px 2px rgb(21 44 66 / 4%);
        font-family: "VazirmatnTable", Tahoma, sans-serif;
        font-size: 14px;
        line-height: 1.6;
        text-align: right;
        vertical-align: middle;
        transition: border-color .15s ease, box-shadow .15s ease;
    }
    input[type="text"]:is(.comboText, .multicomboText, .comboTextFree, .assesscomboText, .comboText_ajax)::placeholder { color: #8395a5; opacity: 1; }
    input[type="text"]:is(.comboText, .multicomboText, .comboTextFree, .assesscomboText, .comboText_ajax):hover:not(:disabled) { border-color: #8eafc8; }
    input[type="text"]:is(.comboText, .multicomboText, .comboTextFree, .assesscomboText, .comboText_ajax):focus {
        outline: none;
        border-color: #247f9e;
        box-shadow: 0 0 0 3px rgb(36 127 158 / 13%);
    }
    input[type="text"]:is(.comboText, .multicomboText, .comboTextFree, .assesscomboText, .comboText_ajax):disabled {
        color: #718292;
        background-color: #f1f5f8 !important;
        border-color: #dce5ec;
        box-shadow: none;
        cursor: not-allowed;
    }
    input[type="text"]:is(.comboText, .multicomboText, .comboTextFree):not(:where(table input, .workPlans input, .workPlansA input)) {
        width: 240px !important;
        min-height: 40px;
        padding: 8px 12px 8px 36px;
    }
    .minitool.ComboText {
        box-sizing: border-box;
        display: inline-block;
        float: none;
        width: 30px;
        height: 32px;
        margin: 4px 2px;
        padding: 0;
        vertical-align: middle;
        line-height: 1;
        border: 1px solid #d6e2eb;
        border-radius: 6px;
        background-color: #f5f9fc !important;
        background-size: 14px 14px !important;
        box-shadow: none;
        transition: background-color .15s ease, border-color .15s ease;
    }
    .minitool.ComboText#prev_index {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23247f9e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 5 5 5-5 5'/%3E%3C/svg%3E") !important;
    }
    .minitool.ComboText#next_index {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23247f9e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 5-5 5 5 5'/%3E%3C/svg%3E") !important;
    }
    .minitool.ComboText:hover { background-color: #e7f3f7 !important; border-color: #92bdcc; }
    .minitool.ComboText:active { background-color: #d7eaf1 !important; }

    .dialog.comboList {
        position: fixed;
        margin: 0;
        box-sizing: border-box;
        width: 240px;
        max-width: calc(100vw - 24px);
        max-height: min(320px, 45vh);
        padding: 6px !important;
        border: 1px solid #d7e3ec;
        border-radius: 11px;
        background: #fff;
        color: #203a50;
        box-shadow: 0 12px 32px rgb(20 46 68 / 15%), 0 2px 6px rgb(20 46 68 / 5%);
        font-family: "VazirmatnTable", Tahoma, sans-serif;
        font-size: 13px !important;
        line-height: 1.7;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #b4c7d6 #f4f8fb;
        z-index: 10020;
    }
    .dialog.comboList > fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
    .dialog.comboList li:is(.singleSelect, .FreeCmbSelect, .multiSelect, .assesssingleSelect, .ajaxSelect) {
        box-sizing: border-box;
        display: block;
        min-height: 36px;
        margin: 2px 0;
        padding: 7px 10px;
        border: 1px solid transparent;
        border-radius: 6px;
        background: transparent;
        color: #304b60;
        font: inherit;
        text-align: right;
        white-space: normal;
        overflow-wrap: anywhere;
        cursor: pointer;
        transition: background-color .12s ease, color .12s ease;
    }
    .dialog.comboList li:is(:hover, :focus, .singleSelectHover, .FreeCmbSelectHover, .multiSelectHover, .assesssingleSelectHover, .ajaxSelectHover) {
        outline: none;
        border-color: #cee6ef;
        background: #edf7fa;
        color: #126080;
    }
    .dialog.comboList li:is(.multiSelectHover2, .ajaxSelectHover2) {
        background: #e6f3ee;
        border-color: #c6e4d6;
        color: #176345;
        font-weight: 600;
    }
    .dialog.comboList li:is(.multiSelectHover2, .ajaxSelectHover2)::after { content: "✓"; float: left; margin-right: 8px; }
    .dialog.comboList li:active { background: #d8edf4; color: #0b536f; }
    .dialog.comboList::-webkit-scrollbar { width: 7px; }
    .dialog.comboList::-webkit-scrollbar-track { background: #f4f8fb; box-shadow: none; border-radius: 10px; }
    .dialog.comboList::-webkit-scrollbar-thumb { background: #b4c7d6; box-shadow: none; border: 2px solid #f4f8fb; border-radius: 10px; }
}
@media screen and (max-width: 600px) {
    /* Leave room for both arrows and the label in compact inline/table filters. */
    input[type="text"]:is(.comboText, .comboTextFree, .assesscomboText, .comboText_ajax):has(~ .minitool.ComboText):not(:where(:is(.conents, .dialogForm) form .fieldClDi input)) {
        max-width: min(100%, calc(100vw - 180px));
    }
}
@media screen and (prefers-reduced-motion: reduce) {
    input[type="text"]:is(.comboText, .multicomboText, .comboTextFree, .assesscomboText, .comboText_ajax),
    .minitool.ComboText, .dialog.comboList li { transition: none; }
}

/* Table actions only: keep the existing elements, routes and click handlers. */
@media screen {
    table :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.alink, .editbx):not(:where(.datePicker *, .ui-datepicker *, .pdp-default *, .pdp-dark *, jdp-container *)) {
        box-sizing: border-box;
        min-height: 34px;
        padding: 6px 12px;
        border: 1px solid #cbdde9;
        border-radius: 8px;
        background-color: #f0f7fb;
        color: #24546e;
        box-shadow: 0 1px 2px rgb(31 55 77 / 5%);
        font-family: "VazirmatnTable", Tahoma, sans-serif;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.7;
        text-decoration: none;
        vertical-align: middle;
        cursor: pointer;
        transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
    }
    table :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.alink, .editbx):not(:where(.datePicker *, .ui-datepicker *, .pdp-default *, .pdp-dark *, jdp-container *)):hover:not(:disabled):not([aria-disabled="true"]) {
        border-color: #93b7cb;
        background-color: #e2eff6;
        box-shadow: 0 2px 4px rgb(31 55 77 / 9%);
    }
    table input[type="submit"]:not(:where(.datePicker *, .ui-datepicker *, .pdp-default *, .pdp-dark *, jdp-container *)) {
        border-color: #b9dccb;
        background-color: #eaf6ef;
        color: #236b49;
    }
    table input[type="submit"]:not(:where(.datePicker *, .ui-datepicker *, .pdp-default *, .pdp-dark *, jdp-container *)):hover:not(:disabled) {
        border-color: #8dbda4;
        background-color: #daeee3;
    }
    table :is(.costomBtn, .cosBtnTarefeh):is(button, input[type="button"], input[type="submit"]) {
        padding-right: 36px;
        background-position: right 9px center;
        background-size: 20px 20px;
        background-repeat: no-repeat;
    }

    table :is(.minitool, .CertBtns, .karkardsCertBtn, .percaseCertBtn, .startCertPercase, .stopCertPercase):not(.ComboText) {
        --table-action-ink: #45657e;
        --table-action-bg: #f2f6fa;
        --table-action-border: #dbe5ee;
        --table-action-hover: #e3edf5;
        box-sizing: border-box;
        width: 30px;
        height: 30px;
        min-width: 30px;
        margin: 2px;
        padding: 0;
        border: 1px solid var(--table-action-border);
        border-radius: 8px;
        /* Generated tools have an inline background shorthand. */
        background-color: var(--table-action-bg) !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-size: 17px 17px !important;
        color: var(--table-action-ink);
        box-shadow: 0 1px 2px rgb(31 55 77 / 4%);
        vertical-align: middle;
        cursor: pointer;
        transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
    }
    table :is(.minitool, .CertBtns, .karkardsCertBtn, .percaseCertBtn, .startCertPercase, .stopCertPercase):not(.ComboText):hover:not(:disabled):not([aria-disabled="true"]) {
        border-color: var(--table-action-ink);
        background-color: var(--table-action-hover) !important;
        box-shadow: 0 2px 4px rgb(31 55 77 / 10%);
    }

    /* Match the actual icon as several different actions share the edit class. */
    table .minitool:is(.edit:not([style]), [style*="id=edit_item"]) {
        --table-action-ink: #2864a2;
        --table-action-bg: #edf5ff;
        --table-action-border: #cfe1f5;
        --table-action-hover: #dcecff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232864a2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 4 4 4M4 20l4-1L20 7a2.8 2.8 0 0 0-4-4L4 15zM4 15l4 4'/%3E%3C/svg%3E") !important;
    }
    table .minitool:is(.delete, .trash, .remove, .remove_item, .delete_item, [style*="id=delete_item"], [style*="id=remove_item"], [style*="id=trash"]),
    table :is(.CertBtns.ErrIcon, .karkardsCertBtn.ErrIcon, .percaseCertBtn.notOk, .stopCertPercase) {
        --table-action-ink: #b13c4b;
        --table-action-bg: #fff1f3;
        --table-action-border: #f0d3d9;
        --table-action-hover: #ffe2e7;
    }
    table .minitool:is(.delete, .trash, .remove, .remove_item, .delete_item, [style*="id=delete_item"], [style*="id=remove_item"], [style*="id=trash"]) {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b13c4b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M9 6V4h6v2M5 6l1 14h12l1-14M10 10v6M14 10v6'/%3E%3C/svg%3E") !important;
    }
    table .minitool:is(.activate, .recycl, [style*="id=accept_item"], [style*="id=recycl"]),
    table :is(.CertBtns.okIcon, .karkardsCertBtn.okIcon, .percaseCertBtn.Ok, .startCertPercase) {
        --table-action-ink: #23734f;
        --table-action-bg: #edf8f2;
        --table-action-border: #cbe6d7;
        --table-action-hover: #dcf0e5;
    }
    table .minitool:is(.activate, [style*="id=accept_item"]),
    table :is(.CertBtns.okIcon, .karkardsCertBtn.okIcon, .percaseCertBtn.Ok, .startCertPercase) {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323734f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") !important;
    }
    table :is(.CertBtns.ErrIcon, .karkardsCertBtn.ErrIcon, .percaseCertBtn.notOk, .stopCertPercase) {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b13c4b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M18 6 6 18'/%3E%3C/svg%3E") !important;
    }
    table .minitool:is(.detail:not([style]), [style*="id=note&"], [style*="id=info&"], [style*="id=zoom_in_magnifier"]) {
        --table-action-ink: #147d8d;
        --table-action-bg: #edf8fa;
        --table-action-border: #cce6eb;
        --table-action-hover: #ddf1f5;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23147d8d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
    }
    table .minitool[style*="id=note_accept"] {
        --table-action-ink: #7151a3;
        --table-action-bg: #f4f0fb;
        --table-action-border: #e0d7f2;
        --table-action-hover: #ebe3f8;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237151a3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H5v18h14v-8M9 15l1-4 9-9 3 3-9 9zM16 5l3 3M8 18h7'/%3E%3C/svg%3E") !important;
    }
    table .minitool:is(.recycl, [style*="id=recycl"]) {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323734f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10a9 9 0 1 1 2 8M3 4v6h6M12 7v5l3 2'/%3E%3C/svg%3E") !important;
    }
    table .minitool[style*="id=printer"] {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345657e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6M6 17H3v-8h18v8h-3M6 14h12v7H6zM17 11h1'/%3E%3C/svg%3E") !important;
    }

    table :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.alink, .editbx, .minitool:not(.ComboText), .CertBtns, .karkardsCertBtn, .percaseCertBtn, .startCertPercase, .stopCertPercase):not(:where(.datePicker *, .ui-datepicker *, .pdp-default *, .pdp-dark *, jdp-container *)):active:not(:disabled):not([aria-disabled="true"]) {
        box-shadow: inset 0 1px 3px rgb(31 55 77 / 14%);
    }
    table :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.alink, .editbx, .minitool:not(.ComboText), .CertBtns, .karkardsCertBtn, .percaseCertBtn, .startCertPercase, .stopCertPercase):not(:where(.datePicker *, .ui-datepicker *, .pdp-default *, .pdp-dark *, jdp-container *)):focus-visible {
        outline: 2px solid #287ba8;
        outline-offset: 2px;
    }
    table :is(button, input[type="button"], input[type="submit"], input[type="reset"], .minitool:not(.ComboText), .CertBtns, .karkardsCertBtn, .percaseCertBtn):is(:disabled, [aria-disabled="true"]):not(:where(.datePicker *, .ui-datepicker *, .pdp-default *, .pdp-dark *, jdp-container *)) {
        opacity: .5;
        box-shadow: none;
        cursor: not-allowed;
    }
}
@media screen and (prefers-reduced-motion: reduce) {
    table :is(button, input[type="button"], input[type="submit"], input[type="reset"], a.alink, .editbx, .minitool:not(.ComboText), .CertBtns, .karkardsCertBtn, .percaseCertBtn, .startCertPercase, .stopCertPercase) { transition: none; }
}

/* Shared date/city/unit filter appearance; retain all existing controls and toggles. */
@media screen {
    form[id][cnx]:has(> .planfilters) {
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 14px;
        width: 100%;
        max-width: 100%;
        margin: 16px 0;
        padding: 16px;
        border: 1px solid #dce6ee;
        border-radius: 12px;
        background: #fff;
        direction: rtl;
        font-family: "VazirmatnTable", Tahoma, sans-serif;
    }
    form[id][cnx] > .planfilters {
        box-sizing: border-box;
        float: none;
        flex: 1 1 240px;
        width: auto;
        min-width: 0;
        max-width: 100%;
        min-height: 54px;
        margin: 0;
        padding: 12px;
        border: 1px solid #d9e4ed;
        border-radius: 9px;
        background: #f7fafc;
        color: #294b63;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.8;
    }
    form .planfilters > ul {
        min-width: 0;
        max-width: none;
        margin: 10px 0 0;
        padding: 6px;
        border: 1px solid #e0e8ef;
        border-radius: 7px;
        background: #fff;
        list-style: none;
        font-size: 13px;
        font-weight: 400;
    }
    form .planfilters > ul.subFilters {
        max-height: 288px;
        overflow: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #b4c7d6 #f2f7fa;
    }
    form .planfilters li { margin: 2px 0; list-style: none; }
    form .planfilters label {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 35px;
        padding: 5px 8px;
        border: 1px solid transparent;
        border-radius: 5px;
        color: #405c70;
        text-align: right;
        line-height: 1.7;
        cursor: pointer;
    }
    form .planfilters label:hover { background: #edf6f8; }
    form .planfilters label:has(input[type="checkbox"]:checked) { border-color: #c9e5dc; background: #e7f4ee; color: #176347; }
    form .planfilters label:focus-within { outline: 2px solid #6ca6b9; outline-offset: 1px; }
    form .planfilters input[type="checkbox"] {
        flex: 0 0 auto;
        width: 17px;
        height: 17px;
        margin: 0;
        accent-color: #137d78;
        cursor: pointer;
    }
    form .planfilters .subFilters > li:first-child:has(.chechAllbox) {
        position: sticky;
        top: -6px;
        z-index: 1;
        margin-top: -2px;
        padding-block: 2px;
        border-bottom: 1px solid #e0e8ef;
        background: #f5f9fc;
        font-weight: 600;
    }
    form .planfilters .subFilters ul { margin: 0; padding-inline-start: 12px; list-style: none; }
    form .planfilters > ul:not(.subFilters) > li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px; }
    form .planfilters input.inputDatex {
        box-sizing: border-box;
        width: 180px;
        max-width: calc(100% - 32px);
        min-height: 40px;
        margin: 0;
        padding: 7px 10px 7px 28px;
        border: 1px solid #cbd9e4;
        border-radius: 6px;
        background-color: #fff !important;
        color: #294b63;
        box-shadow: none;
        direction: ltr;
        text-align: center;
        font-family: inherit;
        font-size: 14px;
        font-variant-numeric: tabular-nums;
    }
    form .planfilters input.inputDatex:focus { outline: 2px solid #92bdcc; outline-offset: 1px; }
    form .planfilters .opcls {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        float: left;
        box-sizing: border-box;
        width: 26px;
        height: 26px;
        padding: 0;
        border: 1px solid #d4e2eb;
        border-radius: 6px;
        background: #fff !important;
        cursor: pointer;
    }
    form .planfilters .opcls::before { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid #247f9e; border-bottom: 1.5px solid #247f9e; transform: rotate(45deg); }
    form .planfilters .opcls.opcls2::before { margin-top: 3px; transform: rotate(225deg); }
    form[id][cnx]:has(> .planfilters) > input[type="submit"] {
        align-self: flex-start;
        min-width: 112px;
        min-height: 44px;
        margin: 0;
        padding: 8px 20px;
        border-radius: 8px;
        font-family: inherit;
        font-size: 14px;
    }
    form .planfilters .subFilters::-webkit-scrollbar { width: 7px; }
    form .planfilters .subFilters::-webkit-scrollbar-track { background: #f2f7fa; box-shadow: none; }
    form .planfilters .subFilters::-webkit-scrollbar-thumb { border: 2px solid #f2f7fa; border-radius: 8px; background: #b4c7d6; box-shadow: none; }
}
@media screen and (max-width: 640px) {
    form[id][cnx]:has(> .planfilters) { gap: 10px; padding: 10px; }
    form[id][cnx] > .planfilters { flex-basis: 100%; }
    form[id][cnx]:has(> .planfilters) > input[type="submit"] { width: 100%; }
}

/* Read-only unit shift roster appearance. Keep cells, text and export targets intact. */
@media screen {
    #reporter_result:has(> table.workPlansA) {
        clear: both;
        max-width: 100%;
        max-height: 70vh;
        margin-block: 14px;
        overflow: auto;
        border: 1px solid #d7e3ec;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 3px 14px rgb(29 62 88 / 5%);
        scrollbar-width: thin;
        scrollbar-color: #b4c7d6 #f3f7fa;
    }
    table.workPlansA {
        width: 100%;
        min-width: 680px;
        margin: 0;
        border: 0;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: auto;
        background: #fff;
        box-shadow: none;
        font-family: "VazirmatnTable", Tahoma, sans-serif;
        font-size: 14px;
        font-variant-numeric: tabular-nums;
        direction: rtl;
    }
    table.workPlansA > tbody > tr > :is(th, td) {
        box-sizing: border-box;
        padding: 11px 14px;
        border: 0;
        border-bottom: 1px solid #e1e9ef;
        border-inline-end: 1px solid #e5ecf2;
        font-family: inherit;
        font-size: 14px;
        line-height: 2;
        vertical-align: middle;
    }
    table.workPlansA > tbody > tr > th {
        position: sticky;
        top: 0;
        z-index: 2;
        height: auto;
        padding-block: 13px;
        border-bottom: 2px solid #b9d6df;
        background: #edf5f8;
        color: #245268;
        font-weight: 700;
        text-align: center;
    }
    table.workPlansA > tbody > tr > th:first-child { min-width: 212px; }
    table.workPlansA > tbody > tr > th:nth-child(n+2) { min-width: 300px; }
    table.workPlansA > tbody > tr > td { background: #fff; color: #29465c; }
    table.workPlansA > tbody > tr:nth-child(odd):not(.vacation) > td { background: #f7fafc; }
    table.workPlansA > tbody > tr > td:first-child {
        width: 88px;
        min-width: 88px;
        color: #526f83;
        font-size: 13px;
        font-weight: 600;
        text-align: center;
        white-space: nowrap;
    }
    table.workPlansA > tbody > tr > td:nth-child(2) {
        width: 124px;
        min-width: 124px;
        direction: ltr;
        unicode-bidi: isolate;
        text-align: center;
        white-space: nowrap;
        font-weight: 500;
    }
    table.workPlansA > tbody > tr > td:nth-child(n+3) {
        min-width: 300px;
        padding-inline: 18px;
        text-align: right;
        line-height: 2.2;
        white-space: normal;
        overflow-wrap: anywhere;
        word-spacing: 1px;
    }
    table.workPlansA > tbody > tr.vacation > td { background: #fff4e8; color: #815c2c; }
    table.workPlansA > tbody > tr:hover:not(.vacation) > td { background: #edf6f8; }
    table.workPlansA > tbody > tr.vacation:hover > td { background: #ffecd7; }
    table.workPlansA > tbody > tr.active > td { background: #e4f2ec; }
    table.workPlansA > tbody > tr > :is(th, td):last-child { border-inline-end: 0; }
    table.workPlansA > tbody > tr:last-child > td { border-bottom: 0; }
    #reporter_result:has(> table.workPlansA)::-webkit-scrollbar { width: 8px; height: 8px; }
    #reporter_result:has(> table.workPlansA)::-webkit-scrollbar-track { background: #f3f7fa; box-shadow: none; }
    #reporter_result:has(> table.workPlansA)::-webkit-scrollbar-thumb { border: 2px solid #f3f7fa; border-radius: 8px; background: #b4c7d6; box-shadow: none; }
}

/* Food-list filter layout only; keep every field, value and action unchanged. */
@media screen {
    form[id][cnx][cfx="foodlist_prc"] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 128px;
        align-items: start;
        gap: 14px;
        max-width: 100%;
        padding: 18px;
        background: #fff;
    }
    form[id][cnx][cfx="foodlist_prc"] > .planfilters {
        width: 100%;
        min-width: 0;
        min-height: 56px;
        padding: 12px 14px;
        border-color: #dce6ed;
        background: #f8fafc;
    }
    form[id][cnx][cfx="foodlist_prc"] > .planfilters[targetid="wplndate"] {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 18px;
        min-height: 64px;
        white-space: nowrap;
        background: #f3f8fa;
        border-color: #d5e5ec;
    }
    form[id][cnx][cfx="foodlist_prc"] > .planfilters[targetid="wplndate"] > span { display: none; }
    form[id][cnx][cfx="foodlist_prc"] > .planfilters[targetid="wplndate"] > ul {
        flex: 1 1 auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 18px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    form[id][cnx][cfx="foodlist_prc"] > .planfilters[targetid="wplndate"] > ul > li {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 0;
        white-space: nowrap;
    }
    form[id][cnx][cfx="foodlist_prc"] .inputDatex {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 40px;
        margin: 0;
        border-radius: 7px;
    }
    form[id][cnx][cfx="foodlist_prc"] > .planfilters:has(.subFilters input[name]:checked) {
        border-color: #9acabb;
        background: #f1faf6;
    }
    form[id][cnx][cfx="foodlist_prc"] .subFilters {
        width: 100%;
        max-width: 100%;
        max-height: 280px;
        margin-top: 12px;
    }
    form[id][cnx][cfx="foodlist_prc"] .subFilters label { overflow-wrap: anywhere; }
    form[id][cnx][cfx="foodlist_prc"] > input[type="submit"] {
        align-self: start;
        width: 128px;
        min-width: 0;
        height: 56px;
        min-height: 56px;
        margin: 0;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgb(19 125 120 / 10%);
    }
}
@media screen and (max-width: 640px) {
    form[id][cnx][cfx="foodlist_prc"] {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }
    form[id][cnx][cfx="foodlist_prc"] > .planfilters[targetid="wplndate"] { display: block; }
    form[id][cnx][cfx="foodlist_prc"] > .planfilters[targetid="wplndate"] > ul {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 10px;
    }
    form[id][cnx][cfx="foodlist_prc"] > input[type="submit"] { width: 100%; height: 48px; min-height: 48px; }
}

/* Application forms fill their available content area, including AJAX forms. */
@media screen {
    :is(.conents, .dialogForm) form:not(:where(table form, .datePicker form, .ui-datepicker form, .dialog.comboList form)),
    :is(.conents, .dialogForm) form:has(> .fieldClDi),
    :is(.conents, .dialogForm) fieldset:has(> .fieldClDi) {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        margin-inline: 0 !important;
    }
    :is(.conents, .dialogForm) :is(div, section):has(> form):not(:where(table *, .datePicker *, .ui-datepicker *, .dialog.comboList *)) {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        margin-inline: 0 !important;
    }
    :is(.conents, .dialogForm) form:has(> .fieldClDi) { align-content: start; }
    .dialogForm:has(form) {
        position: fixed !important;
        top: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        left: 12px !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        height: calc(100vh - 24px) !important;
        height: calc(100dvh - 24px) !important;
        max-height: calc(100vh - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
        margin: 0 !important;
        transform: none;
    }
    .dialogForm:has(form) > .content {
        box-sizing: border-box;
        height: calc(100% - 44px) !important;
        max-height: calc(100% - 44px) !important;
        overflow: auto;
    }
}

/* Dispatch daily report: presentation only; retain the original fields and time format. */
@media screen {
    #dispatchReport-frm {
        width: 100%;
        max-width: 1180px;
        min-width: 0;
        margin: 0 auto;
        color: #29465b;
        font-family: "VazirmatnTable", Tahoma, sans-serif;
        font-size: 14px;
        line-height: 1.9;
        direction: rtl;
        text-align: right;
    }
    #dispatchReport-frm #dispatchReportIdx { min-width: 0; width: 100%; }
    #dispatchReport-frm table {
        width: 100%;
        margin: 0;
        border: 1px solid #d8e4ed;
        border-radius: 12px;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: fixed;
        background: #fff;
        font: inherit;
        box-shadow: 0 3px 16px rgb(30 63 86 / 4%);
    }
    #dispatchReport-frm :is(th, td) {
        box-sizing: border-box;
        padding: 14px 16px;
        border: 0;
        border-bottom: 1px solid #e4ecf2;
        border-inline-end: 1px solid #edf2f6;
        font-family: inherit;
        font-size: 14px;
        line-height: 1.9;
        overflow-wrap: break-word;
        vertical-align: middle;
        text-align: right;
    }
    #dispatchReport-frm td { background: #fff; }
    #dispatchReport-frm tr:nth-child(even) > td { background: #fafcfd; }
    #dispatchReport-frm th { background: #eef4f8; color: #365c75; font-weight: 600; }
    #dispatchReport-frm th[colspan="4"] {
        padding: 15px 18px;
        background: #e9f4f2;
        border-block: 1px solid #d8e9e4;
        color: #22665e;
        font-size: 15px;
    }
    #dispatchReport-frm tr:first-child > th {
        padding: 22px;
        border-top: 0;
        border-radius: 11px 11px 0 0;
        background: #f0f7fa;
        color: #244e69;
        font-size: 20px;
        font-weight: 700;
    }
    #dispatchReport-frm tr:has(> td[colspan="4"]:empty) { display: none; }
    #dispatchReport-frm :is(input[type="text"], textarea) {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 44px;
        padding: 9px 12px;
        border: 1px solid #c4d4e0;
        border-radius: 8px;
        background-color: #fff;
        color: #263f53;
        font-family: inherit;
        font-size: 14px;
        line-height: 1.8;
        box-shadow: 0 1px 2px rgb(30 63 86 / 3%);
    }
    #dispatchReport-frm :is(input, textarea):focus-visible {
        outline: 2px solid #258e87;
        outline-offset: 2px;
        border-color: #63a9a4;
    }
    #dispatchReport-frm textarea { min-height: 104px; resize: vertical; line-height: 2; }
    #dispatchReport-frm textarea:is([name="mozooe"], [name="sharh"]) { height: 180px; min-height: 180px; }
    #dispatchReport-frm textarea[name="peigiri"] { height: 170px; min-height: 170px; }
    #dispatchReport-frm td:has(> input[name="modirjaneshin"]) > input { display: block; margin-top: 8px; }
    #dispatchReport-frm #datesDiv { float: none; width: 100%; margin: 0; }
    #dispatchReport-frm input[name="date"] {
        display: block;
        margin-top: 8px;
        direction: ltr;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }
    #dispatchReport-frm td:has(input[name="shift"]) { text-align: center; }
    #dispatchReport-frm td:has(input[name="shift"])::before {
        content: "شیفت کاری";
        display: block;
        margin-bottom: 8px;
        color: #688092;
        font-size: 12px;
    }
    #dispatchReport-frm input:is([type="radio"], [type="checkbox"]) {
        width: 18px;
        height: 18px;
        min-height: 0;
        vertical-align: middle;
        accent-color: #18857b;
        cursor: pointer;
    }
    #dispatchReport-frm label[for^="sh"] {
        display: inline-block;
        margin: 2px 3px 2px 8px;
        color: #536e82;
        font-size: 14px;
        cursor: pointer;
    }
    #dispatchReport-frm input[name="shift"]:checked + label { color: #14776e; font-weight: 700; }
    #dispatchReport-frm input[type="checkbox"] { margin-inline-end: 8px; }
    #dispatchReport-frm tr:has(input[type="checkbox"]:checked) > td { background-color: #f0f8f5; }
    #dispatchReport-frm td:has(> input.timeX) { text-align: center; }
    #dispatchReport-frm input.timeX {
        display: inline-block;
        width: 152px !important;
        max-width: 100%;
        min-height: 52px;
        padding: 8px 22px;
        border: 1px solid #a9c7d8;
        border-radius: 10px;
        background-color: #f7fbfd;
        color: #234f6d;
        font-size: 22px;
        font-weight: 600;
        line-height: 1.5;
        letter-spacing: 2px;
        font-variant-numeric: tabular-nums;
        direction: ltr;
        text-align: center;
        vertical-align: middle;
    }
    #dispatchReport-frm td:has(> input.timeX)::after {
        content: "ساعت : دقیقه  ·  نمونه 08:30";
        display: block;
        margin-top: 7px;
        color: #688496;
        font-size: 11px;
        font-weight: 400;
        line-height: 1.8;
        letter-spacing: 0;
        direction: rtl;
        white-space: nowrap;
    }
    #dispatchReport-frm > input[type="submit"] {
        display: block;
        min-width: 210px;
        min-height: 50px;
        height: auto;
        margin: 20px 0 8px auto;
        padding: 10px 46px 10px 24px;
        border: 1px solid #126e66;
        border-radius: 9px;
        background-color: #168278;
        background-position: right 12px center;
        background-size: 26px;
        color: #fff;
        font-family: inherit;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.8;
        box-shadow: 0 3px 8px rgb(20 105 97 / 14%);
        cursor: pointer;
    }
    #dispatchReport-frm > input[type="submit"]:hover { background-color: #116e65; }
}

@media screen and (max-width: 768px) {
    #dispatchReport-frm table, #dispatchReport-frm tbody { display: block; width: 100%; border: 0; }
    #dispatchReport-frm tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 12px;
        border: 1px solid #d8e4ed;
        border-radius: 10px;
        background: #fff;
    }
    #dispatchReport-frm :is(th, td) { display: block; width: auto; padding: 12px; border-inline-end: 0; font-size: 14px; }
    #dispatchReport-frm tr:first-child > th { padding: 18px 14px; font-size: 17px; }
    #dispatchReport-frm th[colspan="4"] { border: 0; border-radius: 9px; }
    #dispatchReport-frm tr > td:last-child { border-bottom: 0; }
    #dispatchReport-frm :is(input[type="text"], textarea) { font-size: 16px; }
    #dispatchReport-frm tr:has(> th:is([colspan="2"], [colspan="3"])) { display: none; }
    #dispatchReport-frm tr:has(textarea[name^="S"]) > td:nth-child(2)::before,
    #dispatchReport-frm tr:has(textarea[name^="S"]) > td:nth-child(3)::before,
    #dispatchReport-frm tr:has(input.timeX) > td:last-child::before,
    #dispatchReport-frm td:has(> textarea:is([name="mozooe"], [name="sharh"]))::before {
        display: block;
        margin-bottom: 8px;
        color: #627e91;
        font-size: 12px;
    }
    #dispatchReport-frm tr:has(textarea[name^="S"]) > td:nth-child(2)::before { content: "پرسنل حاضر در شیفت"; }
    #dispatchReport-frm tr:has(textarea[name^="S"]) > td:nth-child(3)::before { content: "شرح مرخصی و جابجایی"; }
    #dispatchReport-frm tr:has(input.timeX) > td:last-child::before { content: "توضیحات"; }
    #dispatchReport-frm td:has(> textarea[name="mozooe"])::before { content: "موضوع"; }
    #dispatchReport-frm td:has(> textarea[name="sharh"])::before { content: "شرح"; }
    #dispatchReport-frm > input[type="submit"] { width: 100%; }
}

/* Dispatch operational archive: filters, result context and empty-state presentation. */
@media screen {
    .dispatch-archive-filters { overflow: visible; margin-bottom: 16px; }
    .dispatch-archive-filters #frmTbLister {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
        align-items: start;
        gap: 12px;
        padding: 16px;
        border: 1px solid #d7e4ee;
        border-radius: 12px;
        background: #fff;
    }
    .dispatch-archive-filters .planfilters {
        float: none;
        width: auto;
        max-width: 100%;
        min-width: 0;
        min-height: 58px;
        margin: 0;
        padding: 12px;
        border: 1px solid #dce7ef;
        border-radius: 8px;
        background: #f7fafc;
        color: #32566f;
        font-family: "VazirmatnTable", Tahoma, sans-serif;
        font-size: 13px;
        line-height: 1.8;
        text-align: right;
    }
    .dispatch-archive-filters .opcls { display: inline-block; float: left; width: 26px; height: 26px; background-size: 14px; }
    .dispatch-archive-filters .subFilters {
        max-height: 290px;
        max-width: 100%;
        margin: 12px 0 0;
        padding: 8px 0 0;
        border-top: 1px solid #dfe9f1;
        border-radius: 0;
        background: transparent;
        overflow: auto;
        scrollbar-width: thin;
    }
    .dispatch-archive-filters .subFilters li { margin: 0 0 6px; list-style: none; }
    .dispatch-archive-filters .subFilters label { display: block; padding: 4px 0; cursor: pointer; }
    .dispatch-archive-filters input[type="checkbox"] { width: 16px; height: 16px; margin-inline-end: 5px; vertical-align: middle; accent-color: #168278; }
    .dispatch-archive-filters .inputDatex {
        display: block;
        width: 100%;
        min-height: 42px;
        margin-top: 5px;
        border: 1px solid #c3d4df;
        border-radius: 7px;
        background: #fff;
        font-family: inherit;
        font-size: 14px;
        direction: ltr;
        text-align: center;
    }
    .dispatch-archive-filters #frmTbLister > input[type="submit"] {
        min-width: 90px;
        min-height: 48px;
        height: auto;
        margin: 4px 0 0;
        padding: 8px 22px;
        border: 1px solid #14786f;
        border-radius: 8px;
        background: #168278;
        color: #fff;
        font: inherit;
        font-size: 14px;
        cursor: pointer;
        box-shadow: none;
    }
    .dispatch-archive-filters #frmTbLister > input[type="submit"]:hover { background: #116e65; }
    .dispatch-archive-filters input:focus-visible { outline: 2px solid #258e87; outline-offset: 2px; }
    .dispatch-archive { padding: 16px; }
    .dispatch-archive > .toolKey {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-width: 108px;
        height: 40px;
        margin: 0 0 12px 8px;
        padding: 6px 38px 6px 12px;
        border: 1px solid #d1dfe9;
        border-radius: 7px;
        background-color: #fff;
        background-position: right 8px center !important;
        background-size: 24px !important;
        color: #365d77;
        font-family: inherit;
        font-size: 13px;
        box-shadow: none;
    }
    .dispatch-archive-tool-label { font: inherit; white-space: nowrap; }
    .dispatch-archive > .toolKey:hover { border-color: #91b8c8; background-color: #f0f7fa; }
    .dispatch-archive #reporter_result { overflow: visible; }
    .dispatch-archive #reporter_result:empty::after {
        content: "برای مشاهدهٔ وقایع عملیاتی، بازهٔ تاریخ و فیلترها را انتخاب کنید و «تایید» را بزنید.";
        display: block;
        padding: 40px 20px;
        border: 1px dashed #d3e1eb;
        border-radius: 9px;
        color: #6b8395;
        font-size: 14px;
        text-align: center;
    }
    .dispatch-archive-result-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 14px;
        margin: 0 0 14px;
        color: #33556e;
        font-size: 14px;
    }
    .dispatch-archive-count { padding: 2px 10px; border-radius: 6px; background: #edf5f8; color: #3b6982; font-size: 12px; }
    .dispatch-archive-period { margin-inline-start: auto; color: #718696; font-size: 12px; }
    .dispatch-archive-scroll {
        max-height: 65vh;
        overflow: auto;
        border: 1px solid #d6e3ec;
        border-radius: 10px;
        scrollbar-width: thin;
        scrollbar-color: #b0c6d5 #f3f7fa;
    }
    table.dispatch-archive-table {
        width: 100%;
        min-width: 1850px;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    table.dispatch-archive-table thead { position: sticky; top: 0; z-index: 2; }
    table.dispatch-archive-table > thead > tr > th { padding: 13px 12px; background: #eaf2f8; font-size: 13px; white-space: nowrap; }
    table.dispatch-archive-table > tbody > tr > :is(th, td) { padding: 12px; font-size: 13px; line-height: 1.9; vertical-align: top; }
    table.dispatch-archive-table > tbody > tr > td:nth-child(n+3):nth-child(-n+7) { min-width: 90px; }
    table.dispatch-archive-table > tbody > tr > td:nth-child(6),
    table.dispatch-archive-table > tbody > tr > td:nth-child(7) { direction: ltr; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
    table.dispatch-archive-table > tbody > tr > td:nth-child(n+11) { min-width: 150px; }
    table.dispatch-archive-table .dispatch-archive-staff { min-width: 180px; }
    .dispatch-archive-person { display: block; margin-bottom: 4px; white-space: nowrap; }
    .dispatch-archive-person:last-child { margin-bottom: 0; }
    table.dispatch-archive-table:has(.dispatch-archive-empty) { min-width: 0; }
    table.dispatch-archive-table:has(.dispatch-archive-empty) thead { display: none; }
    table.dispatch-archive-table > tbody > tr.dispatch-archive-empty > td {
        padding: 42px 24px;
        border: 0;
        background: #f9fbfd;
        color: #6b8192;
        text-align: center;
        white-space: normal;
    }
    .dispatch-archive-empty strong { display: block; margin-bottom: 8px; color: #35566d; font-size: 17px; font-weight: 600; }
    .dispatch-archive-empty span { display: block; max-width: 620px; margin: auto; font-size: 13px; line-height: 2; }
}
@media screen and (max-width: 1100px) {
    .dispatch-archive-filters #frmTbLister { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dispatch-archive-filters #frmTbLister > input[type="submit"] { grid-column: 1 / -1; justify-self: end; }
}
@media screen and (max-width: 640px) {
    .dispatch-archive-filters #frmTbLister { grid-template-columns: minmax(0, 1fr); padding: 12px; }
    .dispatch-archive-filters #frmTbLister > input[type="submit"] { width: 100%; }
    .dispatch-archive { padding: 12px; }
    .dispatch-archive-period { flex-basis: 100%; margin: 0; }
    table.dispatch-archive-table > tbody > tr.dispatch-archive-empty > td { padding: 28px 16px; }
}

/* Login presentation only: retain the existing markup, fields and handlers. */
@media screen {
    body:has(:is(#loginFrm1, #loginFrm2, #checkTwoFactor)):not(:has(#boxContainer > .DeskWork)) {
        background-image: url("../img/back.png");
        background-color: #eee;
    }

    body:has(:is(#loginFrm1, #loginFrm2, #checkTwoFactor)):not(:has(#boxContainer > .DeskWork)) #footer {
        justify-content: center;
        padding: 18px 20px;
        background: #f8fbfb;
        color: #526b77;
        font-family: inherit;
        font-size: 13px;
        text-align: center;
    }

    #boxContainer:has(#loginFrm1) {
        display: block;
    }

    div:has(> :is(#loginFrm1, #loginFrm2, #checkTwoFactor)) {
        box-sizing: border-box;
        width: 420px !important;
        max-width: 100%;
        margin: 32px auto !important;
        padding: 32px !important;
        border: 1px solid #dce8e8;
        border-top: 4px solid #147d78;
        border-radius: 20px !important;
        background: #fff !important;
        color: #243f4c;
        font-family: "VazirmatnTable", Tahoma, Geneva, sans-serif;
        font-size: 14px !important;
        line-height: 1.8;
        overflow: visible !important;
        box-shadow: 0 18px 54px rgb(31 67 76 / 10%) !important;
    }

    .dialogForm:has(:is(#loginFrm1, #loginFrm2, #checkTwoFactor)) {
        top: clamp(76px, 14vh, 136px) !important;
        right: auto !important;
        bottom: auto !important;
        left: 50% !important;
        transform: translateX(-50%);
        width: 420px !important;
        height: auto !important;
        max-width: calc(100vw - 32px) !important;
        max-height: calc(100dvh - clamp(76px, 14vh, 136px) - 20px) !important;
        padding: 0;
        border: 0;
        border-radius: 20px;
        background: transparent;
        box-shadow: 0 18px 54px rgb(31 67 76 / 10%);
        overflow: auto;
    }

    .dialogForm:has(:is(#loginFrm1, #loginFrm2, #checkTwoFactor)) > .closeBtn {
        position: absolute;
        top: 18px;
        left: 18px;
        width: 28px;
        height: 28px;
        margin: 0;
        border-radius: 50%;
        background: #f0f5f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23526b77' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M6 18 18 6'/%3E%3C/svg%3E") center no-repeat;
        box-shadow: none;
        z-index: 1;
    }

    .dialogForm:has(:is(#loginFrm1, #loginFrm2, #checkTwoFactor)) > .closeBtn:hover {
        background-color: #e0eded;
    }

    .dialogForm:has(:is(#loginFrm1, #loginFrm2, #checkTwoFactor)) > .content {
        height: auto !important;
        max-height: none !important;
        padding: 0;
        overflow: visible !important;
    }

    .dialogForm .content > div:has(> :is(#loginFrm1, #loginFrm2, #checkTwoFactor)) {
        width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    div:has(> :is(#loginFrm1, #loginFrm2, #checkTwoFactor)) ~ #getNewPassForm_id:empty {
        margin: 0 !important;
        background: transparent !important;
    }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) {
        margin: 0;
        direction: rtl;
        text-align: right;
    }

    :is(#loginFrm1, #loginFrm2)::before {
        content: "ورود به سامانه";
        display: block;
        margin-bottom: 26px;
        padding-top: 78px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60' fill='none'%3E%3Crect width='60' height='60' rx='18' fill='%23e9f5f3'/%3E%3Crect x='19' y='27' width='22' height='18' rx='5' stroke='%23147d78' stroke-width='2'/%3E%3Cpath d='M23 27v-6a7 7 0 0 1 14 0v6m-7 7v4' stroke='%23147d78' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") top center no-repeat;
        color: #243f4c;
        font-size: 23px;
        font-weight: 700;
        line-height: 1.6;
        text-align: center;
    }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) > div:has(> input) {
        display: block;
        margin: 0 0 20px;
        padding: 0 !important;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    :is(#loginFrm1, #loginFrm2) > div > span:first-child:not(.Err) {
        display: block !important;
        width: auto !important;
        margin-bottom: 8px;
        color: #405c68;
        font-size: 14px;
        font-weight: 500 !important;
    }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) input:is([type="text"], [type="password"]) {
        box-sizing: border-box;
        width: 100% !important;
        min-height: 50px;
        margin: 0;
        padding: 11px 14px !important;
        border: 1px solid #cbdcde !important;
        border-radius: 10px !important;
        background: #f8fbfb;
        color: #243f4c;
        font-family: inherit;
        font-size: 16px;
        line-height: 1.7;
        box-shadow: none;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) input:is([type="text"], [type="password"]):focus {
        border-color: #147d78 !important;
        outline: 2px solid #147d78;
        outline-offset: 2px;
        background-color: #fff;
        box-shadow: 0 0 0 4px rgb(20 125 120 / 8%);
    }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) .Err {
        display: block;
        margin: 6px 0 0;
        padding: 0;
        color: #b42335 !important;
        font-size: 12px;
        text-align: right;
    }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) .Err:empty { display: none; }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) > div:has(> input[type="submit"]) {
        margin: 26px 0 0 !important;
    }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) input[type="submit"] {
        box-sizing: border-box;
        width: 100% !important;
        height: auto;
        min-height: 50px;
        margin: 0;
        padding: 11px 24px !important;
        border: 1px solid #147d78 !important;
        border-radius: 10px !important;
        background: #147d78 !important;
        color: #fff !important;
        font-family: inherit;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.7;
        cursor: pointer;
        box-shadow: 0 4px 10px rgb(20 125 120 / 16%);
        transition: background-color .15s ease, box-shadow .15s ease;
    }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) input[type="submit"]:hover {
        background: #106b67 !important;
        box-shadow: 0 6px 16px rgb(20 125 120 / 22%);
    }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) input[type="submit"]:focus-visible {
        outline: 2px solid #147d78;
        outline-offset: 3px;
    }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) input[type="submit"]:active { box-shadow: none; }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) > div:has(#captchaImg) {
        box-sizing: border-box;
        width: 100% !important;
        padding: 0 !important;
    }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) #captchaImg {
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 12px;
        border: 1px solid #dce8e8;
        border-radius: 10px;
        background: #f5f9f9;
        box-shadow: none;
    }

    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) #captchaImg img { max-width: 100%; }
    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) #captchaRefresh { padding: 6px; border-radius: 8px; }

    div:has(> :is(#loginFrm1, #loginFrm2, #checkTwoFactor)) > .toast {
        position: static !important;
        gap: 10px;
        margin-top: 20px;
        padding: 12px !important;
        border: 1px solid #f1cbd0;
        background: #fff3f4 !important;
        color: #b42335 !important;
        font-size: 13px;
        box-shadow: none !important;
    }

    div:has(> :is(#loginFrm1, #loginFrm2, #checkTwoFactor)) > .toast > button {
        flex-shrink: 0;
        margin: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    .dialogForm:has(:is(#loginFrm1, #loginFrm2, #checkTwoFactor)) {
        top: 76px !important;
        max-height: calc(100dvh - 92px) !important;
    }
    div:has(> :is(#loginFrm1, #loginFrm2, #checkTwoFactor)) { padding: 28px 22px !important; }
}

@media screen and (max-height: 540px) {
    .dialogForm:has(:is(#loginFrm1, #loginFrm2, #checkTwoFactor)) {
        top: 16px !important;
        max-height: calc(100dvh - 32px) !important;
    }
}

@media screen and (prefers-reduced-motion: reduce) {
    :is(#loginFrm1, #loginFrm2, #checkTwoFactor) input { transition: none; }
}
/* SMS verification shares the login card and its responsive layout. */
@media screen {
    #checkTwoFactor .two-factor-heading { margin: 0 0 28px; text-align: center; }
    #checkTwoFactor .two-factor-icon {
        display: flex !important; align-items: center; justify-content: center;
        width: 64px !important; height: 64px; margin: 0 auto 18px;
        border-radius: 19px; background: #e9f5f3; color: #147d78;
    }
    #checkTwoFactor .two-factor-icon svg {
        width: 34px; height: 34px; stroke: currentColor; stroke-width: 1.8;
        stroke-linecap: round; stroke-linejoin: round;
    }
    #checkTwoFactor h3 { margin: 0 0 10px; color: #243f4c; font-size: 23px; font-weight: 700; line-height: 1.6; }
    #checkTwoFactor .two-factor-heading p { margin: 0; color: #647b86; font-size: 14px; line-height: 2; }
    #checkTwoFactor .two-factor-label { display: block; margin-bottom: 10px; color: #405c68; font-size: 14px; text-align: right; }
    #checkTwoFactor input[name="twoFactor"] {
        min-height: 58px; font-size: 24px; text-align: center;
        letter-spacing: .3em; font-variant-numeric: tabular-nums;
    }
    #checkTwoFactor input[name="twoFactor"]::placeholder { color: #8a9da6; font-size: 14px; letter-spacing: normal; }
    div:has(> #checkTwoFactor) > .toast > button {
        width: 24px !important; height: 24px !important;
        min-width: 24px; min-height: 24px; padding: 0 !important; flex: 0 0 24px;
    }
}
