/* ===== LAYOUT ===== */
.layout{
  display:flex;
  min-height:100vh;
  background:#f6f7fb;
}

/* ===== SIDEBAR ===== */
.sidebar{
  width:260px;
  background:linear-gradient(180deg,#0b1220,#111827);
  color:white;
  padding:18px;
  display:flex;
  flex-direction:column;
}

.sidebar-header{
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  margin-bottom:12px;
}

.logo{
  height:42px;
  object-fit:contain;
}

.menu{
  flex:1;
  overflow:auto;
}

.menu-title{
  font-size:10px;
  letter-spacing:1px;
  opacity:0.5;
  margin:14px 10px 6px;
}

.menu-item{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color:#cbd5e1;
  text-decoration:none;
  font-size:13px;
  transition:0.2s;
}

.menu-item:hover{
  background:rgba(255,255,255,0.06);
  color:white;
}

.menu-item.active{
  background:rgba(109,40,217,0.25);
  color:white;
}

/* CTA */
.sidebar-card{
  margin-top:12px;
  padding:14px;
  border-radius:14px;
  background:linear-gradient(135deg,#6d28d9,#8b5cf6);
  text-align:center;
}

.sidebar-icon{
  font-size:22px;
  margin-bottom:6px;
}

.sidebar-title{
  font-size:12px;
  font-weight:600;
}

.sidebar-text{
  font-size:11px;
  opacity:0.8;
  margin:6px 0 10px;
}

.btn-sidebar{
  display:block;
  background:white;
  color:#6d28d9;
  padding:8px;
  border-radius:10px;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
}

/* ===== MAIN AREA ===== */
.main-area{
  flex:1;
  display:flex;
  flex-direction:column;
}

/* TOPBAR */
.topbar{
  height:64px;
  background:white;
  border-bottom:1px solid #e5e7eb;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 20px;
}

.welcome{
  font-weight:600;
}

.topbar-right{
  display:flex;
  align-items:center;
  gap:14px;
}

.notification{
  position:relative;
  font-size:18px;
}

.dot{
  position:absolute;
  top:0;
  right:0;
  width:8px;
  height:8px;
  background:red;
  border-radius:50%;
}

.user{
  display:flex;
  align-items:center;
  gap:10px;
}

.avatar{
  width:34px;
  height:34px;
  border-radius:50%;
  background:linear-gradient(135deg,#6d28d9,#8b5cf6);
  color:white;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:700;
}

.name{
  font-size:13px;
  font-weight:600;
}

.role{
  font-size:11px;
  color:#6b7280;
}

/* CONTENT */
.content{
  padding:22px;
}
/* =========================
   DESIGN SYSTEM FIX
========================= */

:root{
  --primary:#6d28d9;
  --primary2:#8b5cf6;
  --bg:#f6f7fb;
  --card:#ffffff;
  --border:#e5e7eb;
  --text:#0f172a;
  --muted:#6b7280;
}

/* BODY */
body{
  margin:0;
  font-family:Inter, sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* PAGE HEADER (React-like) */
.page-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:18px;
}

.crumb{
  font-size:12px;
  color:var(--muted);
}

h1{
  margin:4px 0 0;
  font-size:22px;
  font-weight:700;
}

/* CARD */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.04);
}

/* BUTTON */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:white;
  font-size:13px;
  cursor:pointer;
  text-decoration:none;
  color:var(--text);
  transition:0.2s;
}

.btn:hover{
  transform:translateY(-1px);
  background:#f3f4f6;
}

.btn.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:white;
  border:none;
}

/* TABLE */
table{
  width:100%;
  border-collapse:collapse;
}

thead th{
  text-align:left;
  font-size:12px;
  color:var(--muted);
  padding:12px;
  border-bottom:1px solid var(--border);
}

tbody td{
  padding:12px;
  font-size:13px;
  border-bottom:1px solid var(--border);
}

/* BADGE */
.badge{
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  background:#eef2ff;
  color:var(--primary);
}

.badge.approved{ background:#dcfce7;color:#16a34a; }
.badge.pending{ background:#fef9c3;color:#ca8a04; }
.badge.rejected{ background:#fee2e2;color:#dc2626; }

/* ACTION BUTTONS */
td .btn{
  padding:6px 10px;
  font-size:12px;
  border-radius:10px;
}
.requirements-page{
    width:100%;
}

.page-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:26px;
}

.page-title{
    font-size:52px;
    font-weight:800;
    color:#0f172a;
}

.create-btn{
    background:linear-gradient(90deg,#7c4dff,#6d5dfc);
    color:#fff;
    padding:16px 28px;
    border-radius:18px;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:700;
    font-size:18px;
    box-shadow:0 10px 20px rgba(124,77,255,.15);
}

.table-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:30px;
    overflow:hidden;
}

.table-filter{
    padding:26px;
    display:flex;
    gap:18px;
    align-items:center;
    border-bottom:1px solid #eceff3;
}

.search-box{
    flex:1;
    max-width:650px;
    height:62px;
    border:1px solid #d8dce7;
    border-radius:18px;
    display:flex;
    align-items:center;
    padding:0 20px;
    gap:12px;
    color:#9ca3af;
}

.search-box input{
    border:none;
    outline:none;
    width:100%;
    font-size:22px;
    color:#111827;
    background:transparent;
}

.status-select{
    height:62px;
    border:1px solid #d8dce7;
    border-radius:18px;
    padding:0 20px;
    font-size:20px;
    color:#111827;
    background:#fff;
    outline:none;
}

.table-wrapper{
    width:100%;
    overflow:auto;
}

.custom-table{
    width:100%;
    border-collapse:collapse;
}

.custom-table thead{
    background:#f8fafc;
}

.custom-table th{
    text-align:left;
    padding:22px 24px;
    font-size:20px;
    color:#667085;
    font-weight:700;
}

.custom-table td{
    padding:24px;
    border-top:1px solid #edf1f5;
    font-size:18px;
    color:#111827;
    font-weight:500;
}

.req-link{
    color:#6d5dfc;
    font-weight:800;
    text-decoration:none;
}

.status-badge{
    padding:10px 18px;
    border-radius:999px;
    font-size:15px;
    font-weight:700;
}

.status-badge.active{
    background:#dcfce7;
    color:#16a34a;
}

.status-badge.closed{
    background:#eef2ff;
    color:#667085;
}

.action-group{
    display:flex;
    align-items:center;
    gap:10px;
}

.action-btn{
    width:44px;
    height:44px;
    border-radius:14px;
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    text-decoration:none;
}

.action-btn svg{
    width:18px;
    height:18px;
}

.action-btn.purple{
    background:#f3e8ff;
    color:#7c3aed;
}

.action-btn.green{
    background:#dcfce7;
    color:#16a34a;
}

.action-btn.gray{
    background:#f1f5f9;
    color:#111827;
}

.action-btn.red{
    background:#fee2e2;
    color:#ef4444;
}

.table-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:24px;
    border-top:1px solid #eceff3;
    color:#667085;
    font-size:18px;
}

.pagination{
    display:flex;
    align-items:center;
    gap:10px;
}

.pagination button{
    width:44px;
    height:44px;
    border-radius:14px;
    border:1px solid #dbe0ea;
    background:#fff;
    cursor:pointer;
    font-size:18px;
    color:#667085;
}

.pagination button.active{
    background:#6d5dfc;
    color:#fff;
    border:none;
}

.empty-data{
    text-align:center;
    padding:40px !important;
    color:#9ca3af;
}

/* RESPONSIVE */
@media(max-width:992px){

    .page-top{
        flex-direction:column;
        align-items:flex-start;
        gap:20px;
    }

    .page-title{
        font-size:36px;
    }

    .table-filter{
        flex-direction:column;
        align-items:stretch;
    }

    .search-box{
        max-width:100%;
    }

    .custom-table th,
    .custom-table td{
        padding:18px;
        font-size:15px;
    }

}
/* PAGE */
.requirement-page{
    width:100%;
}

.page-head{
    margin-bottom:24px;
}

.breadcrumb{
    font-size:15px;
    color:#6b7280;
    margin-bottom:10px;
    font-weight:500;
}

.page-title{
    font-size:52px;
    font-weight:800;
    color:#0f172a;
}

/* LAYOUT */
.requirement-layout{
    display:grid;
    grid-template-columns:1fr 380px;
    gap:28px;
    align-items:start;
}

/* CARD */
.requirement-card,
.info-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:30px;
    padding:30px;
}

/* FORM GRID */
.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group label{
    font-size:18px;
    font-weight:700;
    color:#374151;
    margin-bottom:12px;
}

/* INPUTS */
.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    height:62px;
    border:1px solid #d8dce7;
    border-radius:16px;
    padding:0 18px;
    font-size:18px;
    color:#111827;
    outline:none;
    background:#fff;
    transition:.2s;
}

.form-group textarea{
    min-height:140px;
    resize:none;
    padding:18px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:#7c4dff;
    box-shadow:0 0 0 4px rgba(124,77,255,.08);
}

/* DJANGO INPUTS */
.form-group input,
.form-group select,
.form-group textarea{
    font-family:'Inter',sans-serif;
}

/* FULL WIDTH */
.form-group.full{
    margin-top:24px;
}

/* BUTTON */
.submit-btn{
    width:100%;
    height:68px;
    margin-top:28px;
    border:none;
    border-radius:22px;
    background:linear-gradient(90deg,#6d5dfc,#8b5cf6);
    color:#fff;
    font-size:24px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
    box-shadow:0 12px 20px rgba(124,77,255,.15);
}

.submit-btn:hover{
    transform:translateY(-2px);
}

/* INFO CARD */
.info-title{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:30px;
    font-weight:800;
    color:#111827;
    margin-bottom:28px;
}

.info-title svg{
    color:#7c4dff;
}

/* INFO ITEMS */
.info-item{
    display:flex;
    gap:18px;
    align-items:flex-start;
    margin-bottom:28px;
}

.info-icon{
    width:46px;
    height:46px;
    min-width:46px;
    border-radius:14px;
    background:#f3e8ff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    color:#7c3aed;
}

.info-item p{
    font-size:17px;
    line-height:1.6;
    color:#667085;
    margin:0;
}

/* RESPONSIVE */
@media(max-width:1200px){

    .requirement-layout{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    .page-title{
        font-size:36px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .requirement-card,
    .info-card{
        padding:22px;
        border-radius:24px;
    }

    .submit-btn{
        font-size:18px;
        height:58px;
    }

}
.requirement-detail-page{
    width:100%;
}

/* HEADER */
.detail-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:28px;
    gap:20px;
}

.breadcrumb{
    color:#6b7280;
    font-size:15px;
    margin-bottom:10px;
    font-weight:500;
}

.title-row{
    display:flex;
    align-items:center;
    gap:14px;
}

.detail-title{
    font-size:48px;
    font-weight:800;
    color:#0f172a;
}

/* BUTTONS */
.header-actions{
    display:flex;
    gap:12px;
}

.primary-btn{
    height:56px;
    padding:0 24px;
    border:none;
    border-radius:16px;
    background:linear-gradient(90deg,#6d5dfc,#8b5cf6);
    color:#fff;
    font-size:16px;
    font-weight:700;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.secondary-btn{
    height:56px;
    padding:0 24px;
    border:1px solid #dbe1ea;
    border-radius:16px;
    background:#fff;
    color:#111827;
    font-size:16px;
    font-weight:700;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* CARD */
.detail-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:28px;
    padding:30px;
    margin-bottom:24px;
}

.card-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
}

.card-head h3{
    font-size:28px;
    font-weight:800;
    color:#111827;
}

/* GRID */
.detail-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.detail-item{
    background:#f8fafc;
    border-radius:20px;
    padding:22px;
}

.detail-item .label{
    display:block;
    color:#6b7280;
    font-size:14px;
    margin-bottom:8px;
}

.detail-item h4{
    font-size:22px;
    font-weight:800;
    color:#111827;
}

/* BADGE */
.status-badge{
    padding:8px 16px;
    border-radius:999px;
    font-size:14px;
    font-weight:700;
}

.status-badge.active{
    background:#dcfce7;
    color:#16a34a;
}

.status-badge.closed{
    background:#eef2ff;
    color:#667085;
}

.status-badge.approved{
    background:#dbeafe;
    color:#2563eb;
}

/* REMARKS */
.remarks-box{
    margin-top:24px;
    padding:24px;
    background:#f8fafc;
    border-radius:20px;
}

.remarks-box .label{
    display:block;
    margin-bottom:12px;
    color:#6b7280;
    font-size:14px;
}

.remarks-box p{
    color:#374151;
    line-height:1.7;
}

/* SHARE */
.share-box{
    margin-bottom:24px;
}

.share-box input{
    width:100%;
    height:62px;
    border:1px solid #d8dce7;
    border-radius:18px;
    padding:0 18px;
    font-size:16px;
    background:#f9fafb;
}

.whatsapp-form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.form-group label{
    display:block;
    font-size:16px;
    font-weight:700;
    margin-bottom:10px;
    color:#374151;
}

.form-group textarea{
    width:100%;
    min-height:110px;
    border:1px solid #d8dce7;
    border-radius:18px;
    padding:18px;
    font-size:16px;
    resize:none;
    outline:none;
}

.form-group small{
    display:block;
    margin-top:10px;
    color:#6b7280;
    font-size:13px;
}

/* WA LINKS */
.wa-links{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:24px;
}

.wa-btn{
    background:#dcfce7;
    color:#16a34a;
    padding:14px 20px;
    border-radius:14px;
    text-decoration:none;
    font-weight:700;
}

/* TABLE */
.table-wrapper{
    overflow:auto;
}

.response-table{
    width:100%;
    border-collapse:collapse;
}

.response-table thead{
    background:#f8fafc;
}

.response-table th{
    text-align:left;
    padding:18px 20px;
    color:#667085;
    font-size:15px;
    font-weight:700;
}

.response-table td{
    padding:20px;
    border-top:1px solid #edf1f5;
    font-size:15px;
    color:#111827;
}

.supplier-box{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.supplier-box span{
    font-size:13px;
    color:#6b7280;
}

.response-count{
    background:#eef2ff;
    color:#6d5dfc;
    padding:8px 14px;
    border-radius:999px;
    font-size:14px;
    font-weight:700;
}

.empty-state{
    text-align:center;
    padding:40px !important;
    color:#9ca3af;
}

/* RESPONSIVE */
@media(max-width:1200px){

    .detail-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:768px){

    .detail-header{
        flex-direction:column;
    }

    .header-actions{
        width:100%;
        flex-wrap:wrap;
    }

    .detail-title{
        font-size:34px;
    }

    .detail-grid{
        grid-template-columns:1fr;
    }

    .detail-card{
        padding:22px;
        border-radius:22px;
    }

}
/* PAGE */
.approve-page{
    width:100%;
}

/* HEADER */
.approve-header{
    margin-bottom:28px;
}

.breadcrumb{
    font-size:15px;
    color:#6b7280;
    margin-bottom:10px;
    font-weight:500;
}

.approve-title{
    font-size:48px;
    font-weight:800;
    color:#0f172a;
}

.approve-title span{
    color:#6d5dfc;
}

/* CARD */
.approve-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:30px;
    padding:30px;
}

/* ALERT */
.alert-box{
    padding:18px 20px;
    border-radius:18px;
    margin-bottom:24px;
    font-size:16px;
    font-weight:600;
}

.alert-box.error{
    background:#fee2e2;
    color:#dc2626;
}

/* SUPPLIER LIST */
.supplier-list{
    display:flex;
    flex-direction:column;
    gap:18px;
}

/* OPTION */
.supplier-option{
    display:flex;
    align-items:flex-start;
    gap:20px;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:24px;
    cursor:pointer;
    transition:.2s;
    background:#fff;
}

.supplier-option:hover{
    border-color:#7c4dff;
    box-shadow:0 10px 20px rgba(124,77,255,.06);
    transform:translateY(-1px);
}

/* RADIO */
.radio-box{
    padding-top:4px;
}

.radio-box input[type="radio"]{
    width:22px;
    height:22px;
    accent-color:#7c4dff;
    cursor:pointer;
}

/* INFO */
.supplier-info{
    flex:1;
}

/* TOP */
.supplier-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:18px;
}

.supplier-top h3{
    font-size:24px;
    font-weight:800;
    color:#111827;
    margin-bottom:4px;
}

.supplier-code{
    font-size:14px;
    color:#6b7280;
}

/* STATUS */
.status-badge{
    padding:8px 16px;
    border-radius:999px;
    font-size:14px;
    font-weight:700;
}

.status-badge.pending{
    background:#fef3c7;
    color:#d97706;
}

.status-badge.approved{
    background:#dcfce7;
    color:#16a34a;
}

.status-badge.rejected{
    background:#fee2e2;
    color:#dc2626;
}

/* META */
.supplier-meta{
    display:flex;
    gap:40px;
    flex-wrap:wrap;
}

.meta-item{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.meta-label{
    font-size:13px;
    color:#6b7280;
}

.meta-item strong{
    font-size:18px;
    color:#111827;
}

/* ACTIONS */
.action-area{
    display:flex;
    gap:14px;
    margin-top:32px;
}

/* BUTTONS */
.primary-btn{
    height:58px;
    padding:0 26px;
    border:none;
    border-radius:18px;
    background:linear-gradient(90deg,#6d5dfc,#8b5cf6);
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
    box-shadow:0 10px 20px rgba(124,77,255,.15);
}

.primary-btn:hover{
    transform:translateY(-1px);
}

.primary-btn:disabled{
    opacity:.5;
    cursor:not-allowed;
}

.secondary-btn{
    height:58px;
    padding:0 24px;
    border:1px solid #dbe1ea;
    border-radius:18px;
    background:#fff;
    color:#111827;
    font-size:16px;
    font-weight:700;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* RANDOM */
.random-form{
    margin-top:18px;
}

.random-btn{
    width:100%;
    height:58px;
    border:none;
    border-radius:18px;
    background:#f8fafc;
    color:#111827;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
    border:1px solid #e5e7eb;
}

.random-btn:hover{
    background:#eef2ff;
}

.random-btn:disabled{
    opacity:.5;
    cursor:not-allowed;
}

/* EMPTY */
.empty-state{
    padding:40px;
    border-radius:20px;
    background:#f8fafc;
    text-align:center;
    color:#6b7280;
    font-size:16px;
}

/* RESPONSIVE */
@media(max-width:768px){

    .approve-title{
        font-size:34px;
    }

    .approve-card{
        padding:22px;
        border-radius:24px;
    }

    .supplier-option{
        flex-direction:column;
    }

    .supplier-top{
        flex-direction:column;
    }

    .supplier-meta{
        gap:20px;
    }

    .action-area{
        flex-direction:column;
    }

}
/* =========================
   DESIGN SYSTEM FIX
========================= */

:root{
  --primary:#6d28d9;
  --primary2:#8b5cf6;
  --bg:#f6f7fb;
  --card:#ffffff;
  --border:#e5e7eb;
  --text:#0f172a;
  --muted:#6b7280;
}

/* BODY */
body{
  margin:0;
  font-family:Inter, sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* PAGE HEADER (React-like) */
.page-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:18px;
}

.crumb{
  font-size:12px;
  color:var(--muted);
}

h1{
  margin:4px 0 0;
  font-size:22px;
  font-weight:700;
}

/* CARD */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.04);
}

/* BUTTON */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:white;
  font-size:13px;
  cursor:pointer;
  text-decoration:none;
  color:var(--text);
  transition:0.2s;
}

.btn:hover{
  transform:translateY(-1px);
  background:#f3f4f6;
}

.btn.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:white;
  border:none;
}

/* TABLE */
table{
  width:100%;
  border-collapse:collapse;
}

thead th{
  text-align:left;
  font-size:12px;
  color:var(--muted);
  padding:12px;
  border-bottom:1px solid var(--border);
}

tbody td{
  padding:12px;
  font-size:13px;
  border-bottom:1px solid var(--border);
}

/* BADGE */
.badge{
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  background:#eef2ff;
  color:var(--primary);
}

.badge.approved{ background:#dcfce7;color:#16a34a; }
.badge.pending{ background:#fef9c3;color:#ca8a04; }
.badge.rejected{ background:#fee2e2;color:#dc2626; }

/* ACTION BUTTONS */
td .btn{
  padding:6px 10px;
  font-size:12px;
  border-radius:10px;
}
