/* =========================================
   ELEGANT REQUEST TABLE DESIGN
========================================= */

.request-card{
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    border: none;
}

/* TABLE */
.request-table{
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

/* HEADER */
.request-table thead th{
    background: #ffc107;
    color: #000;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    border: none;
    padding: 14px 10px;
    letter-spacing: .3px;
    font-size: 13px;
}

/* BODY */
.request-table tbody tr{
    transition: 0.2s ease;
}

.request-table tbody tr:nth-child(even){
    background: #f8f9fa;
}

.request-table tbody tr:hover{
    background: #fff8e1;
}

/* CELLS */
.request-table td{
    border-top: 1px solid #f1f1f1;
    padding: 12px 10px;
    vertical-align: middle;
    color: #495057;
}

/* NUMBER */
.req-no{
    text-align: center;
    font-weight: 600;
    width: 70px;
}

/* REQUEST */
.req-request{
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    font-weight: 500;
}

/* DATE */
.req-date{
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
}

/* BADGES */
.req-badge{
    display: inline-block;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

/* STATUS COLORS */
.req-pending{
    background: #fff3cd;
    color: #856404;
}

.req-approved{
    background: #d4edda;
    color: #155724;
}

.req-disapproved{
    background: #f8d7da;
    color: #721c24;
}

.req-processing{
    background: #d1ecf1;
    color: #0c5460;
}

/* MOBILE RESPONSIVE */
@media(max-width:768px){

    .request-table thead{
        display: none;
    }

    .request-table,
    .request-table tbody,
    .request-table tr,
    .request-table td{
        display: block;
        width: 100%;
    }

    .request-table tr{
        margin-bottom: 15px;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        border: 1px solid #f1f1f1;
    }

    .request-table td{
        border: none;
        border-bottom: 1px solid #f1f1f1;
        padding: 12px 14px;
        text-align: left !important;
        position: relative;
    }

    .request-table td:last-child{
        border-bottom: none;
    }

    .request-table td::before{
        content: attr(data-label);
        display: block;
        font-weight: 700;
        font-size: 12px;
        color: #6c757d;
        margin-bottom: 5px;
        text-transform: uppercase;
    }

    .req-date{
        white-space: normal;
    }
}


/* ================================
   ELEGANT RESPONSIVE TABLE DESIGN
================================ */

/* CARD CONTAINER */
.logs-card{
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    background: #fff;
}

/* TABLE */
.logs-table{
    margin-bottom: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

/* HEADER */
.logs-table thead th{
    background: #ffc107;
    color: #000;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    border: none;
    padding: 14px 10px;
    letter-spacing: .3px;
    font-size: 13px;
}

/* BODY */
.logs-table tbody tr{
    transition: 0.2s ease;
}

.logs-table tbody tr:nth-child(even){
    background: #f8f9fa;
}

.logs-table tbody tr:hover{
    background: #fff8e1;
}

/* CELLS */
.logs-table td{
    vertical-align: middle;
    border-top: 1px solid #f1f1f1;
    padding: 12px 10px;
    color: #495057;
}

/* NUMBER COLUMN */
.logs-no{
    width: 70px;
    text-align: center;
    font-weight: 600;
}

/* ACTIVITY COLUMN */
.logs-activity{
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 500;
    line-height: 1.5;
}

/* REMARKS BADGE */
.logs-remarks{
    text-align: center;
}

.logs-badge{
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* SAMPLE COLORS */
.logs-success{
    background: #d4edda;
    color: #155724;
}

.logs-warning{
    background: #fff3cd;
    color: #856404;
}

.logs-danger{
    background: #f8d7da;
    color: #721c24;
}

/* DATE */
.logs-date{
    text-align: center;
    font-size: 13px;
    white-space: nowrap;
}

/* MOBILE DESIGN */
@media(max-width:768px){

    .logs-table thead{
        display: none;
    }

    .logs-table,
    .logs-table tbody,
    .logs-table tr,
    .logs-table td{
        display: block;
        width: 100%;
    }

    .logs-table tr{
        background: #fff;
        margin-bottom: 15px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        border: 1px solid #f1f1f1;
    }

    .logs-table td{
        text-align: left !important;
        padding: 12px 14px;
        position: relative;
        border: none;
        border-bottom: 1px solid #f1f1f1;
    }

    .logs-table td:last-child{
        border-bottom: none;
    }

    .logs-table td::before{
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: #6c757d;
        margin-bottom: 5px;
        font-size: 12px;
        text-transform: uppercase;
    }

    .logs-date{
        white-space: normal;
    }
}


/* =========================
   TIMELINE BASE
========================= */
.enroll-timeline-yellow {
  position: relative;
  margin-left: 10px;
  padding-left: 20px;
  border-left: 3px solid #ffc107;
}

/* ITEM */
.timeline-item-yellow {
  position: relative;
  margin-bottom: 18px;
}

/* DOT */
.timeline-dot-yellow {
  position: absolute;
  left: -29px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: #ffc107;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #ffc107;
}

/* CARD */
.timeline-content-yellow {
  background: #fff8dc;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ffeeba;
}

/* YEAR */
.timeline-year-yellow {
  font-weight: bold;
  color: #b8860b;
  font-size: 14px;
}

/* SCHOOL */
.timeline-school-yellow {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* SECTION */
.timeline-section-yellow {
  font-size: 13px;
  font-weight: 600;
  color: #6c5c00;
}

/* META */
.timeline-meta-yellow {
  font-size: 12px;
  color: #856404;
  margin-top: 2px;
}

/* =========================================
   RESPONSIVE GRADE TABLE
========================================= */

.grade-table-responsive{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

/* TABLE */
.grade-table{
    width: 100%;
    margin-bottom: 0;
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

/* HEADER */
.grade-table thead th{
    background: #FF950F !important;
    color: #fff !important;
    border-color: #e68900 !important;

    white-space: nowrap;
    vertical-align: middle !important;

    font-size: 14px;
    font-weight: 600;

    padding: 12px 10px;
    text-align: center;
}

/* BODY */
.grade-table td,
.grade-table th{
    vertical-align: middle !important;
    padding: 10px;
    font-size: 14px;
}

/* ROW HOVER */
.grade-table tbody tr{
    transition: 0.2s ease;
}

.grade-table tbody tr:hover{
    background: #f8f9fa;
}

/* SUBJECT COLUMN */
.subject-col{
    min-width: 240px;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.5;
}

/* ACTION COLUMN */
.action-col{
    min-width: 90px;
    text-align: center;
    white-space: nowrap;
}

/* CENTER COLUMNS */
.grade-center{
    text-align: center;
    white-space: nowrap;
}

/* GENERAL AVERAGE ROW */
.grade-average{
    background: #6c757d;
    color: #fff;
    font-weight: bold;
}

/* SCHOOL YEAR HEADER */
.grade-schoolyear{
    background: #343a40;
    color: #fff;
    font-weight: bold;
}

/* MOBILE/TABLET */
@media(max-width:768px){

    .grade-table{
        min-width: 850px;
    }

    .grade-table td,
    .grade-table th{
        font-size: 12px;
        padding: 8px;
    }

    .subject-col{
        min-width: 180px;
    }

}

/* =========================================
   BOOKMARK TABS DESIGN
========================================= */

.bm-tabs{
    border-bottom: 2px solid #dee2e6;
    display: flex;
    gap: 0;
    padding-left: 0;
    margin-bottom: 0;
}

/* TAB ITEM */
.bm-tabs .nav-item{
    flex: 1;
    margin: 0;
}

/* TAB LINK */
.bm-tabs .nav-link{
    border: 1px solid #dee2e6 !important;
    border-bottom: none !important;

    border-radius: 12px 12px 0 0 !important;

    background: #f8f9fa;
    color: #495057;

    text-align: center;
    font-weight: 600;

    padding: 12px 10px;

    margin: 0;
    position: relative;

    transition: 0.2s ease;
}

/* CONNECT TABS */
.bm-tabs .nav-item + .nav-item .nav-link{
    border-left: none !important;
}

/* ACTIVE TAB */
.bm-tabs .nav-link.active{
    background: #ffc107 !important;
    color: #000 !important;
    border-color: #ffc107 !important;

    z-index: 3;
    position: relative;

    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

/* HOVER */
.bm-tabs .nav-link:hover{
    background: #ffe08a;
    color: #000;
}

/* TAB CONTENT */
.tab-content{
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 15px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

/* MOBILE TAB SCROLL */
@media(max-width:768px){

    .bm-tabs{
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;

        -webkit-overflow-scrolling: touch;
    }

    .bm-tabs .nav-item{
        flex: 0 0 auto;
    }

    .bm-tabs .nav-link{
        min-width: 160px;
        font-size: 13px;
    }

}

/* =========================================
   OBSERVE VALUES CARD DESIGN
========================================= */

.ov-card{
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: #fff;
}

/* CARD HEADER */
.ov-card-header{
    background: linear-gradient(135deg,#ffc107,#ffb300);
    color: #000;

    padding: 18px;

    font-size: 20px;
    font-weight: bold;

    text-align: center;
    letter-spacing: 1px;
}

/* OBSERVE TABLE */
.ov-table{
    width: 100%;
    table-layout: fixed;
    margin-bottom: 0;
}

/* HEADER */
.ov-table thead th{
    background: #343a40;
    color: #fff;
    border: none;

    text-align: center;
    vertical-align: middle;

    font-size: 13px;
    padding: 12px;
}

/* BODY */
.ov-table td{
    vertical-align: middle;
    font-size: 14px;
    padding: 12px;
}

/* CATEGORY COLUMN */
.ov-category{
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;

    max-width: 250px;
    line-height: 1.5;
}

/* GRADE COLUMN */
.ov-grade{
    text-align: center;
    font-weight: bold;
    font-size: 15px;
}

/* BADGE */
.ov-badge{
    display: inline-block;
    min-width: 45px;

    padding: 6px 10px;

    border-radius: 30px;

    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* BADGE COLORS */
.ov-a{
    background: #28a745;
}

.ov-s{
    background: #17a2b8;
}

.ov-r{
    background: #ffc107;
    color: #000;
}

.ov-n{
    background: #dc3545;
}

.ov-empty{
    background: #6c757d;
}

/* MOBILE */
@media(max-width:768px){

    .ov-table{
        min-width: 700px;
    }

    .ov-table td,
    .ov-table th{
        font-size: 12px;
        padding: 8px;
    }

}


/* =========================================
   BOOK STYLE CARDS
========================================= */

.lrm-entry{
    background:#fffdf7;
    border-radius:18px;
    padding:22px;
    position:relative;
    overflow:hidden;

    border-left:6px solid #ffc107;

    box-shadow:
        0 5px 18px rgba(0,0,0,0.08);

    transition:0.25s ease;

    height:100%;
}

/* hover effect */
.lrm-entry:hover{
    transform:translateY(-4px);
    box-shadow:
        0 10px 24px rgba(0,0,0,0.12);
}

/* subtle book line */
.lrm-entry::before{
    content:"";
    position:absolute;
    top:0;
    left:38px;
    width:2px;
    height:100%;
    background:rgba(0,0,0,0.06);
}

/* NUMBER */
.lrm-number{
    position:absolute;
    top:15px;
    right:15px;

    width:34px;
    height:34px;

    border-radius:50%;

    background:#ffc107;
    color:#000;

    font-weight:700;
    font-size:13px;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

/* TITLE */
.lrm-resource-title{
    font-size:18px;
    font-weight:700;
    color:#3b2f1f;

    margin-bottom:18px;

    line-height:1.5;

    white-space:normal;
    word-wrap:break-word;
    overflow-wrap:break-word;
}

/* META */
.lrm-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;

    margin-bottom:18px;
}

/* BADGES */
.lrm-badge{
    background:#fff3cd;
    color:#6c5200;

    border-radius:30px;

    padding:7px 14px;

    font-size:12px;
    font-weight:600;

    border:1px solid rgba(255,193,7,0.35);

    display:inline-flex;
    align-items:center;
    gap:5px;
}

/* DATE */
.lrm-date{
    font-size:13px;
    color:#6c757d;
    font-style:italic;
}

/* EMPTY */
.lrm-empty{
    background:#fffdf7;

    border-radius:18px;

    padding:60px 20px;

    text-align:center;

    color:#8a6d3b;

    box-shadow:0 4px 15px rgba(0,0,0,0.05);
}

.lrm-empty i{
    font-size:65px;
    margin-bottom:12px;
}

/* MOBILE */
@media(max-width:768px){

    .lrm-resource-title{
        font-size:16px;
    }

    .lrm-badge{
        width:100%;
        justify-content:flex-start;
    }

}


/* =========================================
   ELEGANT LOCKED GRADE
========================================= */

.locked-grade{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:6px 12px;

    border-radius:30px;

    background:#f8f9fa;
    color:#6c757d !important;

    font-weight:600;
    font-size:14px;

    border:1px solid #dee2e6;

    transition:0.25s ease;

    text-decoration:none !important;
}

.locked-grade:hover{
    background:#eceff1;
    color:#495057 !important;

    transform:translateY(-1px);

    box-shadow:0 3px 10px rgba(0,0,0,0.08);
}

/* =========================================
   EDITABLE GRADE
========================================= */

.editable-grade{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:6px 12px;

    border-radius:30px;

    background:#fff8e1;
    color:#ff9800 !important;

    font-weight:700;
    font-size:14px;

    border:1px solid #ffe082;

    transition:0.25s ease;

    text-decoration:none !important;
}

.editable-grade:hover{
    background:#ffc107;
    color:#000 !important;

    transform:translateY(-1px);

    box-shadow:0 4px 12px rgba(255,193,7,0.35);
}

/* =========================================
   CUSTOM TOOLTIP
========================================= */

.grade-tooltip{
    text-align:center;
    padding:4px 6px;
    font-size:13px;
    font-weight:500;
}

.grade-tooltip i{
    display:block;
    font-size:18px;
    margin-bottom:4px;
    color:#ffc107;
}