.summary-page {
    float: right;
    font-weight: 600;
}
.pap-logo {
    margin-right: 2rem;
}
h1 a.icon-print {
    color:#444;
    background-color:initial;
    font-size:25px
}
h1 a.icon-print:hover {
    color:#1597ce;
    text-decoration: none;
}
.my-fb-title {
    background-color:#ff8758;
}
.but-right {
    width:auto;
}
.align-right {
    text-align: right;
}
[id$='-res']{
    float:right;
}
.a-like {
    cursor: pointer;
    color:#0690cf;
}
.a-like:hover {
    color:#FB8C00;
}
/*---------------------------------------------------- DEL BUT ----------------------------------------------------*/
#del-but,
.delete-but {
    cursor:pointer;
}
#del-but:hover,
.delete-but:hover {
    color:#ED1C24;
}
.red {
    color:#ED1C24;
    font-weight:600;
}
.red:visited {
    color:#ED1C24;
    font-weight:600;
}
.green {
    color:#7ac943;
    font-weight:600;
}
.hilight-red {
    font-weight:600;
    color:#ED1C24;
}
/*---------------------------------------------------- STATUS ----------------------------------------------------*/
[class^="ez-circle-"],
[class*="ez-circle-"]{
    display:inline-block;
    box-sizing:border-box;
    width:20px;
    height:20px;
    border-radius: 50%;
}
.ez-circle-blank {
    border:1px #777 solid;
}
.ez-circle-orange {
    background-color:#FB8C00;
}
.ez-circle-yellow {
    background-color:#FDD835;
}
.ez-circle-green {
    background-color:#66BB6A;
}
.ez-circle-hgreen {
    border:3px #66BB6A solid;
}
.ez-circle-red {
    background-color:#ED1C24;
}
.ez-circle-blue {
 background-color:#3f1ced;
}
.ez-circle-sky {
 background-color:#3cbee6;
}
.ez-circle-purple {
 background-color:#bc2dec;
}
.ez-circle-brown  {
 background-color:#9a7b4f;
}
.ez-circle-pink  {
 background-color:#ea8dce;
}
.ez-circle-yellow-red {
    background-color:#FDD835;
    border:2px #ED1C24 solid;
}
#quote-csv {
    display:inline-block;
    margin-left:15px;
}
.icon-adjust:before {
    font-size:22px;
    color:#66BB6A;
}
.ez-circle-adjust-red:before {
    color:#ED1C24;
}
.ez-circle-adjust-yellow:before {
    color:#FDD835;
}
.circle-yellow:before {
    color:#FDD835;
}
/*=============================================[   new ez-icon   ]===============================================*/
.ez-table [class*="ez-icon-"],
.tb-legend [class*="ez-icon-"]{
    font-size:20px;
}
.ez-icon-red:before {
    color:#ED1C24;
}
.ez-icon-green:before {
    color:#66BB6A;
}
.ez-icon-blue:before {
    color:#0cc5ea;
}

/*===============================================================  Status.php ==========================================================*/

#tb-pstatus tr th:first-child{
    width:50px;
}
#tb-pstatus tr th:nth-child(2){
    width:30%;
}
#tb-job-status tr th:nth-child(3){
    width:25%;
}
#tb-job-status,
#tb-job-result{
    position:relative;
    top:-3px;
    padding:0;
}
/*=============================================[   INDEX   ]===============================================*/
#job-cal {
    position:relative;
}
.calender-f {
    overflow: hidden;
    padding:5px;
    top:5px;
    left:5px;
    z-index:100;
}
.calender-f div {
    margin:0;
}
.calender-f .tb-filter {
    width:100%;
}
/*=============================================[   HELP   ]===============================================*/
.help-list {
    padding-left:25px;
}
.gray-icon {
    cursor:default;
    color:#777 !important;
}
.gray-icon:hover {
    cursor:default;
    color:#777 !important;
}
/*=============================================[   JOB PRIORITY   ]===============================================*/
[class*='job-priority-0-'] {
    background-image: linear-gradient(to bottom,#C69C6D 0,#C69C6D 100%);
    background-repeat: repeat-x;
    border-color: #b2dba1;
}
[class*='job-priority-1-'] {
    background-image: linear-gradient(to bottom,#FF9797 0,#FF7575 100%);
    background-repeat: repeat-x;
    border-color: #b2dba1;
}
[class*='job-priority-2-'] {
    background-image: linear-gradient(to bottom,#FFF7D9 0,#FFD740 100%);
    background-repeat: repeat-x;
    border-color: #b2dba1;
}
[class*='job-priority-3-'] {
    background-image: linear-gradient(to bottom,#D7E6FF 0,#C3DAFF 100%);
    background-repeat: repeat-x;
    border-color: #b2dba1;
}
[class*='job-priority-8-'] {
    background-image: linear-gradient(to bottom,#D1D2D4 0,#D1D2D4 100%);
    background-repeat: repeat-x;
    border-color: #b2dba1;
}
[class*='job-priority-9-'] {
    background-image: linear-gradient(to bottom,#FFF 0,#FFF 100%);
    background-repeat: repeat-x;
    border-color: #b2dba1;
}
.job-priority-0-s,
.job-priority-1-s,
.job-priority-2-s,
.job-priority-3-s,
.job-priority-8-s,
.job-priority-9-s{
    display:inline-block;
    width:30px;
    height:20px;
    border:1px solid rgba(0,0,0,0.3);
}
.gray {
    color:#888;
}
a.gray {
    color:#888;
}
.tb-legend {
    margin-bottom:10px;
}
#s-sid-res {
    float:right;
}
h1 a[class*="icon-"] {
    background-color:initial;
    color:#444;
    font-size:28px;
}
h1 a[class*="icon-"]:hover {
    background-color:initial;
    color:#1597ce;
    font-size:28px;
    text-decoration: none;
}
[id*='-res'] {
    float:right;
}
.form-sec {
    float:left;
    border:1px #1597ce solid;
    padding:7px;
    margin-bottom:10px;
    width:100%;
}

/*-------------------------------------------------- cancel link --------------------------------------------------*/
a.doc-cancel-link,
a.cancel-iv-link{
    color:#888;
    text-decoration:line-through;
}
/*=============================================[   FONT COLOR   ]===============================================*/
.font-green {
    color:#00cc66;
}

/*=============================================[   Event Style   ]===============================================*/
[onclick='show_image(this)'],
[onclick='open_image(this)']{
 cursor: pointer;
 }
 
 .badge {
  background-color: red;
  border-radius: 3px;
  padding: 0 3px;
  font-size: 12px;
  color: white;
  vertical-align: top;
    
}

.summary-sg {
 font-size: 15px;
 font-weight: 600;
}

.info-disk {
    text-align: left;
    padding: 3px;
    font-size: 16px;
}
.border{
    border: 1px solid black;
}


/* =============================================[   SHOW DISK   ]=============================================== */
[class*='p-col-'] {
    float:left;
    box-sizing: border-box;
    /* border: solid 1px black; */
}
.p-col-20 {
    width: 20%;
}
.p-col-80 {
    width: 80%;
}
.p-col-100 {
    width: 100%;
}
.pd-l-5 {
    padding-left: 5px;
}
.pd-t-3 {
    padding-top: 3px;
}
.info-disk {
    text-align: left;
    padding: 3px;
    font-size: 15px;
}
.center {
    text-align: center !important;
}
.border {
    border: solid 1px rgb(59, 58, 58);
}

.sh-disk-icon{
    display: none;
}
@media (min-width: 500px ){
    .sh-disk-icon {
        display: block;
    }
}
/*---------------------------------------------------- DEL BUT Multi ----------------------------------------------------*/
[id*='del-but-'] {
    cursor:pointer;
}
[id*='del-but-']:hover {
    color:#ED1C24;
}
.summary{
    font-weight: 600;
    font-size: 11pt
}
#panel.min-menu {
    left:-200px !important;
}
/*---------------------------------------------------- TITLE MENU ----------------------------------------------------*/
#leave-onmenu {
    font-family: 'THSarabunNew';
    display:none;
    height: 40px;
    padding-left: 10px;
    padding-top: 5px;
    /* font-weight:600; */
    font-size : 25px;
    top: 0;
    vertical-align: top;
}
@media only screen and (min-width: 1060px) {
    #leave-onmenu{
        display: inline-block;
    }
}

.form-required-blue {
    display: inline-block;
    text-align: center;
    margin-left: 5px;
    width: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #169bf5;
}
.form-required-blue {
    font-size: 16px;
    display: inline-block;
    position: relative;
    top: 3px;
    cursor: pointer;
}
.form-required-blue:hover > .des {
    display: block;
}
.flex-ct {
    width: 100%;
    display: flex;
    justify-content: center;
}

.sel-readonly select,
.sel-readonly select:focus,
.sel-readonly select:disabled {
    color: #0f0e0e !important; /* Bootstrap default text color */
    background-color: #d9d9d9 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    -webkit-text-fill-color: #0f0e0e !important;
    pointer-events: none;
    outline: none !important;
    box-shadow: none !important;
}
/* =========================================================== Responsive ===========================================================*/

/* ===================== TABLE ===================== */
/* =====================
   Mobile (default)
   ===================== */
.ez-tb-view.ez-table:not(.no-wrap) table th,
.ez-tb-view.ez-table:not(.no-wrap) table td {
  white-space: nowrap;
}

/* =====================
   iPad (≥ 768px)
   ===================== */
@media (min-width: 769px) {
  .ez-tb-view.ez-table:not(.no-wrap) table th,
  .ez-tb-view.ez-table:not(.no-wrap) table td {
    white-space: nowrap;
  }
}

/* =====================
   Laptop (≥ 1024px)
   ===================== */
@media (min-width: 1024px) {
  .ez-tb-view.ez-table:not(.no-wrap) table th,
  .ez-tb-view.ez-table:not(.no-wrap) table td {
    white-space: nowrap;
  }
}

/* =====================
   Desktop (≥ 1280px)
   ===================== */
@media (min-width: 1280px) {
  .ez-tb-view.ez-table:not(.no-wrap) table th,
  .ez-tb-view.ez-table:not(.no-wrap) table td {
    white-space: normal;
  }
}

/* 📱 mobile */
@media (max-width: 769px) {

  /* บังคับ 1 สถานะ = 1 แถว */
  .tb-legend {
    line-height: 1.6;
  }

  /* icon + text อยู่บรรทัดเดียวกัน */
  .tb-legend i,
  .tb-legend .def {
    display: inline;
    white-space: nowrap;
  }

  /* ตัดบรรทัดหลังแต่ละสถานะ */
  .tb-legend .def::after {
    content: "\A";
    white-space: pre;
  }

  /* ❌ ซ่อน comma (text node) แบบไม่กระทบ icon font */
  .tb-legend {
    letter-spacing: -0.3em;
  }

  .tb-legend i,
  .tb-legend .def {
    letter-spacing: normal;
  }
}
.ez-tb-view.ez-table table th,
.ez-tb-view.ez-table table td {
    white-space: nowrap;
    font-size: clamp(11pt, calc(12pt - 0.8vh), 15pt) !important;

    vertical-align: top;
    padding: 3px;
}

.ez-tb-view.ez-table [class*="icon-"] {
    font-size: clamp(13pt, calc(14pt - 0.3vh), 16pt) !important;
}
.ez-tb-view.ez-table table th {
    font-size: clamp(10pt, calc(11pt - 0.8vh), 13pt) !important;
}
.ez-tb-view.ez-table table th,
.ez-tb-view.ez-table table td {
    border: none;
}
.s-pic-consult div{
    max-width: 100%;
}
#tb-consult-sg th:first-child,
#tb-consult-sg th:nth-child(2),
#tb-consult-sg th:nth-child(3)
{
    width: 45px;
}

#tb-consult-sg th:nth-child(4) {
    width: 30%;
}
#tb-consult-sg td:nth-child(4) {
    text-align: left;
    padding-left: 5px;
}
#tb-consult-sg th:nth-last-child(2),
#tb-consult-sg th:nth-last-child(3),
#tb-consult-sg td:nth-last-child(2),
#tb-consult-sg td:nth-last-child(3) {
    text-align: right;
    width: 7%;
}

#tb-expnce-consult th:last-child {
    width: 300px;
}
[class^='lb-status'] {
    display: inline-block;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: normal;
    line-height: 1;
    color: #fff;
    text-align: center;
    vertical-align: baseline;
    border-radius: 8px;
}
.lb-status-red {
    background-color: #ED1C24;
}
.lb-status-green {
    background-color: #23b506;
}

/* n+2 = ตั้งแต่คอลัมน์ที่ 2 */
/* -n+4 = ไม่เกินคอลัมน์ที่ 4 */
#tb-pap-user th:nth-child(n+2):nth-child(-n+4),
#tb-pap-user td:nth-child(n+2):nth-child(-n+4) {
    text-align: left;
    padding-left: 5px;
}
#tb-work-note th:first-child,
#tb-work-note th:last-child {
    width: 40px;
}
#tb-work-note th:nth-child(2),
#tb-work-note td:nth-child(2)
{
    text-align: left;
}
#tb-work-note th:nth-child(3),
#tb-work-note th:nth-child(4), 
#tb-work-note th:nth-child(5) 
{
    width: 10%;
}
.mycd-box {
    min-height: 300px !important;
}