/* ============================================================
   akunteknisi.css — SIPDAM Akun Teknisi Page
   Theme: Light Green (sama dengan dashboard)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap');

:root {
    --akt-green:    #1a7a4a;
    --akt-green-m:  #2d9e63;
    --akt-green-l:  #e8f7ee;
    --akt-green-l2: #d0eedd;
    --akt-teal:     #0d9488;
    --akt-blue:     #2563eb;
    --akt-blue-l:   #eff6ff;
    --akt-violet:   #7c3aed;
    --akt-violet-l: #f5f3ff;
    --akt-amber:    #d97706;
    --akt-amber-l:  #fffbeb;
    --akt-rose:     #dc2626;
    --akt-rose-l:   #fff1f2;
    --akt-cyan:     #0891b2;
    --akt-cyan-l:   #ecfeff;
    --akt-border:   #d1e8da;
    --akt-t1:       #0f172a;
    --akt-t2:       #334155;
    --akt-t3:       #64748b;
    --akt-t4:       #94a3b8;
    --akt-bg:       #f0f7f3;
    --akt-white:    #ffffff;
    --akt-font:     'Figtree', 'Segoe UI', sans-serif;
}

/* ── Header ── */
.akt-icon-wrap {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--akt-green), var(--akt-green-m));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    box-shadow: 0 4px 14px rgba(26,122,74,0.25);
}
.akt-page-title {
    font-family: var(--akt-font); font-size: 20px;
    font-weight: 700; color: var(--akt-t1); line-height: 1;
}
.akt-page-sub { font-size: 12px; color: var(--akt-t3); margin-top: 3px; }

.akt-btn-primary {
    font-family: var(--akt-font);
    background: linear-gradient(135deg, var(--akt-green), var(--akt-green-m));
    color: #fff; font-weight: 700; font-size: 13px;
    padding: 10px 20px; border-radius: 10px; border: none;
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; transition: all .2s;
    box-shadow: 0 4px 14px rgba(26,122,74,0.25);
}
.akt-btn-primary:hover { transform: translateY(-2px); opacity: .9; }

/* ── Wrap ── */
.akt-wrap { padding: 28px 0; background: var(--akt-bg); min-height: 100vh; }
.akt-inner { max-width: 1300px; margin: 0 auto; padding: 0 24px; }

/* ── Alert ── */
.akt-alert {
    padding: 14px 18px; border-radius: 12px;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 24px; font-size: 14px;
    font-family: var(--akt-font);
    animation: akt-fadeIn .3s ease;
}
.akt-alert-ok  {
    background: var(--akt-green-l); border: 1px solid var(--akt-green-l2);
    color: var(--akt-green);
}
.akt-alert-err {
    background: var(--akt-rose-l); border: 1px solid #fca5a5;
    color: var(--akt-rose);
}
@keyframes akt-fadeIn {
    from { opacity:0; transform:translateY(-8px); }
    to   { opacity:1; transform:none; }
}

/* ── Toolbar ── */
.akt-toolbar {
    display: flex; align-items: center; gap: 14px;
    flex-wrap: wrap; margin-bottom: 20px;
}
.akt-search-wrap { flex: 1; min-width: 220px; position: relative; }
.akt-search-wrap i {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%); color: var(--akt-t4);
    font-size: 13px; pointer-events: none;
}
.akt-search-input {
    width: 100%; background: var(--akt-white);
    border: 1px solid var(--akt-border); color: var(--akt-t1);
    border-radius: 10px; padding: 11px 14px 11px 38px;
    font-family: var(--akt-font); font-size: 13px;
    outline: none; transition: border-color .2s;
}
.akt-search-input::placeholder { color: var(--akt-t4); }
.akt-search-input:focus {
    border-color: var(--akt-green);
    box-shadow: 0 0 0 3px rgba(26,122,74,0.08);
}

.akt-chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.akt-chip {
    padding: 8px 16px; border-radius: 10px;
    font-size: 12px; font-weight: 700; font-family: var(--akt-font);
    border: 1px solid var(--akt-border); color: var(--akt-t2);
    background: var(--akt-white); cursor: pointer; transition: all .2s;
    display: flex; align-items: center; gap: 7px;
}
.akt-chip .cnt {
    background: #f1f5f9; padding: 2px 8px;
    border-radius: 99px; font-size: 11px;
}
.akt-chip:hover           { border-color: var(--akt-green); color: var(--akt-green); background: var(--akt-green-l); }
.akt-chip.active          { border-color: var(--akt-green); color: var(--akt-green); background: var(--akt-green-l); }
.akt-chip.active .cnt     { background: var(--akt-green-l2); }
.akt-chip.green:hover,
.akt-chip.green.active    { border-color: var(--akt-green); color: var(--akt-green); background: var(--akt-green-l); }
.akt-chip.green.active .cnt { background: var(--akt-green-l2); }
.akt-chip.rose:hover,
.akt-chip.rose.active     { border-color: var(--akt-rose); color: var(--akt-rose); background: var(--akt-rose-l); }

/* ── Panel ── */
.akt-panel {
    background: var(--akt-white); border: 1px solid var(--akt-border);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.akt-panel-head {
    padding: 16px 24px; border-bottom: 1px solid var(--akt-border);
    display: flex; align-items: center; justify-content: space-between;
    background: #f8fdf9;
}
.akt-panel-head-left {
    font-family: var(--akt-font); font-size: 13px;
    font-weight: 700; color: var(--akt-t1);
    display: flex; align-items: center; gap: 8px;
}
.akt-panel-head-right { font-size: 12px; color: var(--akt-t3); }

/* ── Table ── */
.akt-table { width: 100%; border-collapse: collapse; }
.akt-table thead tr { background: #f8fdf9; }
.akt-table th {
    padding: 13px 20px; text-align: left;
    font-family: var(--akt-font); font-size: 10px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--akt-t3);
    border-bottom: 1px solid var(--akt-border);
}
.akt-table th:last-child { text-align: center; }
.akt-table td {
    padding: 14px 20px; border-bottom: 1px solid #f0f7f3;
    vertical-align: middle; font-family: var(--akt-font);
    font-size: 13px; color: var(--akt-t2);
}
.akt-table tr:last-child td { border-bottom: none; }
.akt-table tbody tr.table-row { transition: background .15s; }
.akt-table tbody tr.table-row:hover { background: #f8fdf9; }

.akt-rownum {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--akt-green-l); border: 1px solid var(--akt-green-l2);
    color: var(--akt-green); font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Teknisi cell */
.akt-av {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--akt-green), var(--akt-green-m));
    color: #fff; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.akt-av-name {
    font-size: 13px; font-weight: 600;
    color: var(--akt-t1); font-family: var(--akt-font);
}
.akt-av-sub { font-size: 11px; color: var(--akt-t3); margin-top: 2px; }

/* Username */
.akt-username {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--akt-green-l); border: 1px solid var(--akt-green-l2);
    border-radius: 8px; padding: 6px 12px;
    font-size: 12px; color: var(--akt-green);
    font-family: var(--akt-font); font-weight: 600;
}
.akt-username i { font-size: 11px; }

/* Status badges */
.akt-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 99px;
    font-size: 11px; font-weight: 700;
    font-family: var(--akt-font); border: 1px solid;
}
.akt-badge-green { background: var(--akt-green-l); color: var(--akt-green); border-color: var(--akt-green-l2); }
.akt-badge-rose  { background: var(--akt-rose-l);  color: var(--akt-rose);  border-color: #fca5a5; }

/* Toggle btn */
.akt-toggle-btn {
    width: 30px; height: 30px; border-radius: 7px;
    border: 1px solid var(--akt-border); background: transparent;
    color: var(--akt-t3); cursor: pointer; font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all .2s; margin-left: 8px;
}
.akt-toggle-btn:hover {
    border-color: var(--akt-green); color: var(--akt-green);
    background: var(--akt-green-l);
}

/* Action buttons */
.akt-actions { display: flex; align-items: center; justify-content: center; gap: 6px; }
.akt-action-btn {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid var(--akt-border); background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s; font-size: 12px;
}
.akt-action-edit { color: var(--akt-teal); }
.akt-action-edit:hover { background: var(--akt-cyan-l); border-color: var(--akt-teal); }
.akt-action-del  { color: var(--akt-rose); }
.akt-action-del:hover  { background: var(--akt-rose-l); border-color: var(--akt-rose); }

/* Empty / No result */
.akt-empty { padding: 72px 20px; text-align: center; }
.akt-empty-icon {
    width: 68px; height: 68px; border-radius: 16px;
    background: var(--akt-green-l); border: 1px solid var(--akt-green-l2);
    margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--akt-green);
}
.akt-empty-title {
    font-family: var(--akt-font); font-size: 14px;
    font-weight: 700; color: var(--akt-t2); margin-bottom: 5px;
}
.akt-empty-sub { font-size: 12px; color: var(--akt-t3); }

/* ── Modals ── */
.akt-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    z-index: 50; overflow-y: auto;
}
.akt-overlay.show {
    display: flex; align-items: flex-start;
    justify-content: center; padding: 40px 16px;
}
.akt-modal {
    background: var(--akt-white); border: 1px solid var(--akt-border);
    border-radius: 20px; width: 100%; max-width: 540px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.15);
    animation: akt-modalIn .25s cubic-bezier(.34,1.56,.64,1);
    overflow: hidden;
}
@keyframes akt-modalIn {
    from { opacity:0; transform: scale(.94) translateY(12px); }
    to   { opacity:1; transform: none; }
}

.akt-modal-stripe { height: 3px; }
.akt-modal-stripe-green {
    background: linear-gradient(90deg, var(--akt-green), var(--akt-green-m), var(--akt-teal));
}
.akt-modal-stripe-cyan  {
    background: linear-gradient(90deg, var(--akt-teal), var(--akt-cyan));
}

.akt-modal-inner { padding: 28px 32px 32px; }

.akt-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 26px; padding-bottom: 18px;
    border-bottom: 1px solid var(--akt-border);
}
.akt-modal-title {
    font-family: var(--akt-font); font-size: 17px;
    font-weight: 700; color: var(--akt-t1);
    display: flex; align-items: center; gap: 10px;
}
.akt-modal-title i { font-size: 15px; color: var(--akt-green); }
.akt-close-btn {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid var(--akt-border); color: var(--akt-t3);
    background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; transition: all .2s;
}
.akt-close-btn:hover { border-color: var(--akt-rose); color: var(--akt-rose); }

/* Form */
.akt-form-fields { display: flex; flex-direction: column; gap: 18px; }
.akt-form-field  { display: flex; flex-direction: column; gap: 7px; }
.akt-form-label {
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--akt-t2);
    display: flex; align-items: center; gap: 6px;
}
.akt-form-label i   { font-size: 10px; color: var(--akt-green); }
.akt-form-label .req { color: var(--akt-rose); }
.akt-form-label .opt { color: var(--akt-t4); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 10px; }

.akt-select, .akt-text-input, .akt-pw-input {
    background: var(--akt-bg); border: 1px solid var(--akt-border);
    color: var(--akt-t1); border-radius: 10px; padding: 11px 14px;
    font-family: var(--akt-font); font-size: 13px;
    outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.akt-select:focus, .akt-text-input:focus, .akt-pw-input:focus {
    border-color: var(--akt-green);
    box-shadow: 0 0 0 3px rgba(26,122,74,0.08);
}
.akt-text-input::placeholder, .akt-pw-input::placeholder { color: var(--akt-t4); }
.akt-select.disabled-field {
    background: #f1f5f9; color: var(--akt-t4); cursor: not-allowed;
}

.akt-hint { font-size: 11px; color: var(--akt-t3); margin-top: 2px; }
.akt-err  { font-size: 11px; color: var(--akt-rose); margin-top: 2px; min-height: 14px; }

.akt-pw-wrap { position: relative; }
.akt-pw-wrap .akt-pw-input { padding-right: 42px; }
.akt-pw-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--akt-t3);
    cursor: pointer; font-size: 13px; transition: color .2s;
}
.akt-pw-toggle:hover { color: var(--akt-green); }

.akt-modal-footer {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 10px; padding-top: 22px; margin-top: 6px;
    border-top: 1px solid var(--akt-border);
}
.akt-btn-cancel {
    padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 600;
    font-family: var(--akt-font); background: transparent;
    border: 1px solid var(--akt-border); color: var(--akt-t2);
    cursor: pointer; display: flex; align-items: center; gap: 7px; transition: all .2s;
}
.akt-btn-cancel:hover { border-color: var(--akt-rose); color: var(--akt-rose); }
.akt-btn-submit {
    padding: 10px 24px; border-radius: 10px; font-size: 13px; font-weight: 700;
    font-family: var(--akt-font); border: none; cursor: pointer;
    display: flex; align-items: center; gap: 7px; transition: all .2s;
}
.akt-btn-submit-green {
    background: linear-gradient(135deg, var(--akt-green), var(--akt-green-m));
    color: #fff; box-shadow: 0 4px 14px rgba(26,122,74,0.25);
}
.akt-btn-submit-cyan  {
    background: linear-gradient(135deg, var(--akt-teal), var(--akt-cyan));
    color: #fff; box-shadow: 0 4px 14px rgba(13,148,136,0.25);
}
.akt-btn-submit:hover { opacity: .9; transform: translateY(-1px); }

#akt-alert-msg { transition: opacity .4s; }