/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    background: #111827;
    color: #fff;
    padding: 18px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.topbar h1 {
    margin: 0 0 5px;
    font-size: 22px;
}

.topbar p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    max-width: 1400px;
    margin: auto;
    padding: 18px;
}


/* =========================================================
   BUTTON
   ========================================================= */

.btn {
    background: #fff;
    color: #111827;
    text-decoration: none;

    border-radius: 8px;

    padding: 10px 15px;

    font-weight: 700;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
}


/* =========================================================
   STATISTICS
   ========================================================= */

.stats {
    display: flex;
    gap: 12px;

    margin-bottom: 12px;

    flex-wrap: wrap;
}

.stats div {
    background: #fff;

    border-radius: 10px;

    padding: 12px 18px;

    min-width: 130px;

    box-shadow: 0 1px 4px #0001;
}

.stats b {
    display: block;
    font-size: 24px;
}

.stats span {
    font-size: 12px;
    color: #64748b;
}


/* =========================================================
   LEGEND
   ========================================================= */

.legend {
    display: flex;
    gap: 18px;

    flex-wrap: wrap;

    background: #fff;

    padding: 10px 14px;

    border-radius: 10px;

    margin-bottom: 14px;

    font-size: 13px;
}

.legend i {
    width: 14px;
    height: 14px;

    display: inline-block;

    vertical-align: -2px;

    border-radius: 3px;
}

.legend .blue {
    background: #00a1e9;
}

.legend .orange {
    background: #f08300;
}

.legend .red {
    background: #e53935;
}


/* =========================================================
   MAP / DENAH
   ========================================================= */

.map-wrap {
    position: relative;
    width: 100%;
    overflow: auto;

    -webkit-overflow-scrolling: touch;

    /*
     * Gesture touch ditangani oleh JavaScript:
     *
     * 1 jari = pan
     * 2 jari = pinch zoom
     */
    touch-action: none;

    overscroll-behavior: contain;
}

.map-bg {
    display: block;

    width: 100%;

    height: auto;

    /*
     * Jangan gunakan height: 100%.
     * Rasio layout harus mengikuti gambar asli.
     */
    max-width: none;
}


/* =========================================================
   TENANT LAYER
   ========================================================= */

.tenant-layer {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;
}


/* =========================================================
   TENANT BUTTON
   ========================================================= */

.tenant-btn {
    position: absolute;

    border: 1px solid #fff9;

    border-radius: 2px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 8px;
    font-weight: 700;

    color: #111;

    cursor: pointer;

    padding: 0;

    overflow: hidden;

    transition: 0.15s;

    pointer-events: auto;

    transform-origin: center center;

    opacity: 0.88;

    /*
     * Supaya teks tidak menyebabkan tombol
     * berubah ukuran.
     */
    white-space: nowrap;

    /*
     * Menghilangkan highlight biru bawaan
     * pada beberapa browser mobile.
     */
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   TENANT HOVER
   ========================================================= */

.tenant-btn:hover {
    z-index: 10;

    transform: scale(1.12);

    box-shadow:
        0 0 0 2px #fff,
        0 2px 8px #0005;
}


/* =========================================================
   TENANT COLORS
   ========================================================= */

.tenant-btn.blue {
    background: #00a1e9;
}

.tenant-btn.orange {
    background: #f08300;
    color: #111;
}

.tenant-btn.occupied {
    background: #e53935;
    color: #fff;

    opacity: 0.94;
}


/* =========================================================
   MODAL
   ========================================================= */

.modal {
    display: none;

    position: fixed;

    inset: 0;

    background: #0008;

    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 100;
}

.modal.show {
    display: flex;
}

.modal-card {
    background: #fff;

    border-radius: 14px;

    width: min(400px, 100%);

    padding: 25px;

    position: relative;

    max-height: calc(100vh - 40px);

    overflow-y: auto;
}


/* =========================================================
   MODAL CLOSE
   ========================================================= */

.close {
    position: absolute;

    right: 12px;
    top: 8px;

    border: 0;

    background: none;

    font-size: 28px;

    cursor: pointer;

    color: #111827;
}


/* =========================================================
   TENANT NAME
   ========================================================= */

.tenant-name {
    font-size: 22px;

    font-weight: 700;

    margin: 14px 0;
}


/* =========================================================
   STATUS
   ========================================================= */

.status {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 12px;
}

.status.ok {
    background: #dcfce7;
    color: #166534;
}

.status.full {
    background: #fee2e2;
    color: #991b1b;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.toolbar {
    display: flex;

    gap: 10px;

    margin-bottom: 14px;
}

.toolbar input,
.toolbar select {
    padding: 11px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    background: #fff;
}

.toolbar input {
    flex: 1;
}


/* =========================================================
   ADMIN LAYOUT
   ========================================================= */

.admin-layout {
    display: grid;

    grid-template-columns: 1.4fr 1fr;

    gap: 15px;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-card {
    background: #fff;

    border-radius: 12px;

    overflow: auto;

    max-height: 700px;
}

.table-card table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}

.table-card th,
.table-card td {
    padding: 9px;

    border-bottom: 1px solid #e5e7eb;

    text-align: left;

    vertical-align: middle;
}

.table-card th {
    position: sticky;

    top: 0;

    background: #f8fafc;

    z-index: 2;
}


/* =========================================================
   INPUT
   ========================================================= */

.name-input {
    width: 180px;

    padding: 7px;

    border: 1px solid #d1d5db;

    border-radius: 6px;
}


/* =========================================================
   SMALL BUTTON
   ========================================================= */

.small-btn {
    border: 0;

    border-radius: 6px;

    padding: 7px 9px;

    cursor: pointer;

    background: #111827;

    color: #fff;
}

.small-btn.clear {
    background: #e5e7eb;

    color: #111827;
}


/* =========================================================
   MAP ERROR
   ========================================================= */

.map-error {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #fff8;

    color: #991b1b;

    font-weight: 700;
}


/* =========================================================
   FORM
   ========================================================= */

.field-label {
    display: block;

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 6px;
}

.edit-input {
    width: 100%;

    padding: 12px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    font-size: 15px;
}


/* =========================================================
   MODAL ACTION
   ========================================================= */

.modal-actions {
    display: flex;

    justify-content: flex-end;

    gap: 8px;

    margin-top: 15px;
}


/* =========================================================
   TABLET
   Max width 900px
   ========================================================= */

@media (max-width: 900px) {

    /* -----------------------------------------
       TOP BAR
       ----------------------------------------- */

    .topbar {
        padding: 15px 16px;

        align-items: flex-start;
    }

    .topbar h1 {
        font-size: 20px;
    }

    .topbar p {
        font-size: 12px;

        line-height: 1.4;
    }


    /* -----------------------------------------
       CONTAINER
       ----------------------------------------- */

    .container {
        padding: 14px;
    }


    /* -----------------------------------------
       ADMIN
       ----------------------------------------- */

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

    .table-card {
        max-height: none;
    }


    /* -----------------------------------------
       STATISTICS
       ----------------------------------------- */

    .stats {
        gap: 8px;
    }

    .stats div {
        flex: 1;

        min-width: 110px;

        padding: 10px 14px;
    }

    .stats b {
        font-size: 21px;
    }


    /* -----------------------------------------
       LEGEND
       ----------------------------------------- */

    .legend {
        gap: 12px;

        font-size: 12px;
    }


    /* -----------------------------------------
       MAP
       ----------------------------------------- */

     .map-wrap {
        width: 100%;
        max-height: 70vh;

        overflow: auto;

        -webkit-overflow-scrolling: touch;

        touch-action: none;

        overscroll-behavior: contain;

        border-radius: 9px;
    }

    .map-bg {
        display: block;

        width: 100%;

        height: auto;

        max-width: none;
    }

    .tenant-layer {
        position: absolute;

        left: 0;
        top: 0;

        width: 100%;
        height: 100%;
    }


    /* -----------------------------------------
       TENANT
       ----------------------------------------- */

    .tenant-btn {
        font-size: 7px;

        font-weight: 800;

        line-height: 1;
    }


    /*
     * Pada tablet tidak perlu efek hover
     * yang membesarkan booth.
     */
    .tenant-btn:hover {
        transform: none;

        box-shadow: none;
    }


    /* -----------------------------------------
       TOOLBAR
       ----------------------------------------- */

    .toolbar {
        flex-wrap: wrap;
    }

    .toolbar input,
    .toolbar select {
        min-width: 0;
    }

}


/* =========================================================
   MOBILE
   Max width 600px
   ========================================================= */

@media (max-width: 600px) {

    /* -----------------------------------------
       TOP BAR
       ----------------------------------------- */

    .topbar {
        padding: 12px;

        gap: 10px;
    }

    .topbar h1 {
        font-size: 17px;

        margin-bottom: 3px;
    }

    .topbar p {
        font-size: 11px;

        line-height: 1.4;
    }


    /* -----------------------------------------
       BUTTON
       ----------------------------------------- */

    .btn {
        padding: 8px 11px;

        font-size: 12px;

        border-radius: 7px;
    }


    /* -----------------------------------------
       CONTAINER
       ----------------------------------------- */

    .container {
        padding: 8px;
    }


    /* -----------------------------------------
       STATISTICS
       ----------------------------------------- */

    .stats {
        display: grid;

        grid-template-columns: repeat(3, 1fr);

        gap: 6px;
    }

    .stats div {
        min-width: 0;

        padding: 8px 5px;

        text-align: center;
    }

    .stats b {
        font-size: 18px;
    }

    .stats span {
        font-size: 9px;
    }


    /* -----------------------------------------
       LEGEND
       ----------------------------------------- */

    .legend {
        gap: 8px;

        padding: 8px 10px;

        margin-bottom: 10px;

        font-size: 10px;
    }

    .legend i {
        width: 11px;
        height: 11px;
    }


    /* -----------------------------------------
       MAP
       ----------------------------------------- */

    .map-wrap {
        width: 100%;

        border-radius: 8px;

        position: relative;

        overflow: auto;

        -webkit-overflow-scrolling: touch;

        touch-action: pan-x pan-y;
    }


    /*
     * PENTING:
     *
     * Jangan gunakan:
     *
     * height: 100%;
     * object-fit: fill;
     *
     * karena akan membuat layout gepeng.
     */
    .map-bg {
        width: 100%;

        height: auto;

        display: block;

        max-width: none;
    }


    /*
     * Layer harus mengikuti ukuran
     * background image.
     */
    .tenant-layer {
        position: absolute;

        left: 0;
        top: 0;

        width: 100%;
        height: 100%;
    }


    /* -----------------------------------------
       TENANT BUTTON
       ----------------------------------------- */

    .tenant-btn {
        font-size: 6px;

        font-weight: 900;

        line-height: 1;

        border-width: 1px;

        /*
         * Jangan membesarkan booth saat
         * disentuh di HP.
         */
        transform-origin: center center;
    }

    .tenant-btn:hover {
        transform: none;

        box-shadow: none;
    }


    /*
     * Saat tenant ditekan dengan touchscreen,
     * jangan ada perubahan ukuran.
     */
    .tenant-btn:active {
        transform: none;

        box-shadow: none;
    }


    /* -----------------------------------------
       MODAL
       ----------------------------------------- */

    .modal {
        padding: 12px;
    }

    .modal-card {
        width: 100%;

        max-width: 400px;

        padding: 20px;

        border-radius: 12px;

        max-height: calc(100vh - 24px);

        overflow-y: auto;
    }

    .tenant-name {
        font-size: 19px;
    }

    .field-label {
        font-size: 12px;
    }

    .edit-input {
        padding: 11px;

        font-size: 14px;
    }


    /* -----------------------------------------
       MODAL ACTION
       ----------------------------------------- */

    .modal-actions {
        display: flex;

        justify-content: flex-end;

        gap: 7px;

        flex-wrap: wrap;
    }


    /* -----------------------------------------
       TOOLBAR ADMIN
       ----------------------------------------- */

    .toolbar {
        display: flex;

        flex-direction: column;

        gap: 7px;
    }

    .toolbar input,
    .toolbar select {
        width: 100%;
    }


    /* -----------------------------------------
       NAME INPUT
       ----------------------------------------- */

    .name-input {
        width: 100%;
    }


    /* -----------------------------------------
       TABLE
       ----------------------------------------- */

    .table-card {
        width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    .table-card table {
        min-width: 650px;
    }

}


/* =========================================================
   MOBILE SMALL
   Max width 400px
   ========================================================= */

@media (max-width: 400px) {

    /* -----------------------------------------
       TOP BAR
       ----------------------------------------- */

    .topbar {
        padding: 10px;
    }

    .topbar h1 {
        font-size: 16px;
    }

    .topbar p {
        font-size: 10px;
    }


    /* -----------------------------------------
       BUTTON
       ----------------------------------------- */

    .btn {
        padding: 7px 9px;

        font-size: 11px;
    }


    /* -----------------------------------------
       CONTAINER
       ----------------------------------------- */

    .container {
        padding: 6px;
    }


    /* -----------------------------------------
       STATISTICS
       ----------------------------------------- */

    .stats {
        gap: 4px;
    }

    .stats div {
        padding: 7px 3px;
    }

    .stats b {
        font-size: 16px;
    }

    .stats span {
        font-size: 8px;
    }


    /* -----------------------------------------
       LEGEND
       ----------------------------------------- */

    .legend {
        gap: 6px;

        font-size: 9px;
    }

    .legend i {
        width: 10px;
        height: 10px;
    }


    /* -----------------------------------------
       TENANT
       ----------------------------------------- */

    .tenant-btn {
        font-size: 5px;
    }

}

/* =========================================================
   MAP STAGE
   ========================================================= */

.map-wrap {
    position: relative;
    width: 100%;
    overflow: auto;

    background: #fff;

    -webkit-overflow-scrolling: touch;
}


/*
 * Background + tenant berada dalam satu stage.
 *
 * Stage inilah yang diperbesar.
 */

.map-stage {
    position: relative;

    width: 100%;

    line-height: 0;

    flex-shrink: 0;
}


/* =========================================================
   BACKGROUND
   ========================================================= */

.map-stage .map-bg {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    display: block;

    max-width: none;
}


/* =========================================================
   TENANT LAYER
   ========================================================= */

.map-stage .tenant-layer {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;
}


/* =========================================================
   TENANT BUTTON
   ========================================================= */

.map-stage .tenant-btn {
    pointer-events: auto;

    line-height: 1;

    white-space: nowrap;
}


/* =========================================================
   ZOOM CONTROL
   ========================================================= */

.zoom-controls {
    position: sticky;

    left: 10px;
    bottom: 10px;

    z-index: 100;

    display: flex;
    align-items: center;

    gap: 4px;

    width: max-content;

    margin: 10px;

    padding: 5px;

    background: rgba(17, 24, 39, .95);

    border-radius: 10px;

    box-shadow: 0 3px 12px #0005;
}


.zoom-controls button {
    width: 42px;
    height: 42px;

    border: 0;

    border-radius: 7px;

    background: #fff;

    color: #111827;

    font-size: 24px;

    font-weight: 700;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    -webkit-tap-highlight-color: transparent;
}


.zoom-controls span {
    min-width: 60px;

    text-align: center;

    color: #fff;

    font-size: 13px;

    font-weight: 700;
}

@media (max-width: 600px) {

    .map-wrap {
        width: 100%;

        /*
         * Area denah bisa di-scroll
         * setelah diperbesar.
         */
        overflow: auto;

        max-height: 70vh;

        -webkit-overflow-scrolling: touch;

        touch-action: pan-x pan-y;

        border-radius: 9px;
    }

    .map-stage {
        /*
         * Sangat penting.
         *
         * Jangan pakai width:100% !important
         * karena JS harus bisa memperbesar
         * stage menjadi 200%, 300%, dst.
         */
        flex-shrink: 0;
    }

    .zoom-controls {
        margin: 7px;
        padding: 4px;
    }

    .zoom-controls button {
        width: 42px;
        height: 42px;
        font-size: 23px;
    }

    .zoom-controls span {
        min-width: 55px;
        font-size: 12px;
    }

}

/* =========================================================
   ADMIN MAP ZOOM
   ========================================================= */

.admin-layout {
  position: relative;
}

.admin-layout > .map-wrap {
  position: relative;
  overflow: auto;
  width: 100%;
  max-width: 100%;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Stage mengikuti ukuran zoom */
.admin-layout .map-stage {
  position: relative;
  flex: none;
  min-width: 1px;
  min-height: 1px;
}

/* Background */
.admin-layout .map-stage .map-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Tenant layer */
.admin-layout .map-stage .tenant-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Tombol tenant */
.admin-layout .map-stage .tenant-btn {
  position: absolute;
}

/* Kontrol zoom */
.admin-layout .map-zoom-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(255,255,255,.94);
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
  backdrop-filter: blur(5px);
}

/* Tombol */
.admin-layout .map-zoom-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: #111;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.admin-layout .map-zoom-btn:hover {
  opacity: .85;
}

.admin-layout .map-zoom-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.admin-layout .map-zoom-btn.reset {
  font-size: 19px;
}

/* Persentase zoom */
.admin-layout .map-zoom-level {
  min-width: 48px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #222;
}

/* HP / Tablet */
@media (max-width: 900px) {

  .admin-layout > .map-wrap {
    width: 100%;
    overflow: auto;
  }

  .admin-layout .map-zoom-controls {
    top: 8px;
    left: 8px;
  }

  .admin-layout .map-zoom-btn {
    width: 34px;
    height: 34px;
  }

  .admin-layout .map-zoom-level {
    min-width: 45px;
    font-size: 11px;
  }
}

.edit-note {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
  font-family: inherit;
}
/* =========================================================
   LAYOUT EDITOR
   Tambahan fitur editor - tidak mengubah style existing.
   ========================================================= */

.editor-toggle.active {
  background: #111;
  color: #fff;
}

.editor-action {
  white-space: nowrap;
}

.editor-action.pending {
  background: #b45309;
  color: #fff;
}

.editor-help {
  margin: 8px 0 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
}

.layout-editor-active .tenant-btn {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.layout-editor-active .tenant-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 0 4px rgba(17,24,39,.55);
  z-index: 20;
}

.layout-editor-active .tenant-btn.dragging {
  cursor: grabbing;
  filter: brightness(1.12);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(37,99,235,.8);
  z-index: 1000;
}

.small-btn.danger {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}

.small-btn.danger:hover {
  background: #991b1b;
}

#addType.edit-input {
  box-sizing: border-box;
  background: #fff;
}

@media (max-width: 900px) {
  .editor-help {
    font-size: 12px;
  }

  .toolbar .editor-action,
  .toolbar .editor-toggle {
    min-height: 38px;
  }
}
\n\n/* =========================================================\n   FREE ROTATION HANDLE - LAYOUT EDITOR\n   ========================================================= */\n\n.layout-editor-active .rotation-editor {\n  position: absolute;\n  z-index: 2000;\n  width: 1px;\n  height: 1px;\n  pointer-events: none;\n}\n\n.layout-editor-active .rotation-line {\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 2px;\n  height: 24px;\n  transform: translate(-50%, -100%);\n  background: rgba(17,24,39,.75);\n}\n\n.layout-editor-active .rotation-handle {\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 32px;\n  height: 32px;\n  transform: translate(-50%, -50%);\n  border: 2px solid #fff;\n  border-radius: 50%;\n  background: #111;\n  color: #fff;\n  box-shadow: 0 2px 8px rgba(0,0,0,.35);\n  font-size: 18px;\n  line-height: 1;\n  padding: 0;\n  cursor: grab;\n  pointer-events: auto;\n  touch-action: none;\n  user-select: none;\n  -webkit-user-select: none;\n}\n\n.layout-editor-active .rotation-handle:hover,\n.layout-editor-active .rotation-handle.dragging {\n  transform: translate(-50%, -50%) scale(1.12);\n}\n\n.rotation-hint {\n  display: block;\n  margin-top: 5px;\n  color: #6b7280;\n  font-size: 11px;\n}\n\n@media (max-width: 900px) {\n  .layout-editor-active .rotation-handle {\n    width: 38px;\n    height: 38px;\n    font-size: 20px;\n  }\n}\n

/* Fix: rotation handle must remain visible above tenant buttons in editor mode */
.layout-editor-active .tenant-layer {
  z-index: 100;
  overflow: visible;
}
.layout-editor-active .rotation-editor {
  z-index: 5000 !important;
  pointer-events: none;
}
.layout-editor-active .rotation-handle {
  z-index: 5001;
}

/* =========================================================
   ADMIN AUTH
   ========================================================= */
.topbar .btn{white-space:nowrap;text-decoration:none}
@media(max-width:600px){.topbar{gap:10px}.topbar>div:last-child{width:100%}.topbar>div:last-child .btn{display:inline-flex}}


/* =========================================================
   BOOTH TYPE / CUSTOM COLOR
   ========================================================= */
.booth-legend .booth-a { background:#00A1E9 !important; }
.booth-legend .booth-b { background:#F2D400 !important; }
.booth-legend .booth-c { background:#F08300 !important; }
.booth-legend .booth-d { background:#8CC63E !important; }
.booth-legend .red-dot { background:#e53935 !important; border-radius:50% !important; }

.tenant-btn.booth-a,
.tenant-btn.booth-b,
.tenant-btn.booth-c,
.tenant-btn.booth-d { color:#111; }

/* Status terisi: seluruh kotak tenant berubah menjadi merah */
.tenant-btn.occupied {
    background: #e53935 !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px #b71c1c, 0 0 0 1px #fff9;
    opacity: 0.96;
}

.booth-config-row {
    display:flex;
    align-items:center;
    gap:8px;
}

.booth-type-select { flex:1; }

.color-input {
    width:52px;
    height:42px;
    padding:3px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    background:#fff;
    cursor:pointer;
}

.color-presets {
    display:flex;
    gap:7px;
    margin:7px 0 10px;
}

.color-presets button {
    width:28px;
    height:28px;
    padding:0;
    border:2px solid #fff;
    border-radius:7px;
    box-shadow:0 0 0 1px #cbd5e1;
    cursor:pointer;
}

.color-presets button[data-color="#00A1E9"] { background:#00A1E9; }
.color-presets button[data-color="#F2D400"] { background:#F2D400; }
.color-presets button[data-color="#F08300"] { background:#F08300; }
.color-presets button[data-color="#8CC63E"] { background:#8CC63E; }

.booth-chip {
    display:inline-flex;
    align-items:center;
    gap:5px;
    font-weight:700;
}
.booth-chip i {
    width:14px;
    height:14px;
    border-radius:3px;
    display:inline-block;
    background:var(--booth-color);
    box-shadow:0 0 0 1px #9998;
}

.modal-booth {
    display:inline-block;
    margin:4px 0 8px;
    padding:4px 8px;
    border-radius:5px;
    font-size:11px;
    font-weight:700;
}
.modal-note {
    margin:8px 0;
    padding:9px 10px;
    background:#f8fafc;
    border-radius:8px;
    color:#475569;
    font-size:12px;
    line-height:1.45;
    white-space:pre-wrap;
}

@media (max-width:900px) {
    .booth-config-row { align-items:stretch; }
    .color-input { width:48px; min-width:48px; height:40px; }
}

/* =========================================================
   USER MANAGEMENT - ADMIN
   ========================================================= */
.user-management-card {
  margin: 16px 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,.05);
}
.user-management-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.user-management-head h2 { margin:0 0 4px; font-size:18px; }
.user-management-head p { margin:0; color:#6b7280; font-size:12px; }
.user-table-wrap { width:100%; overflow-x:auto; }
.user-table { width:100%; border-collapse:collapse; min-width:650px; }
.user-table th, .user-table td { padding:10px 9px; border-bottom:1px solid #edf0f2; text-align:left; font-size:13px; vertical-align:middle; }
.user-table th { background:#f8fafc; font-size:12px; color:#475569; }
.user-role { display:inline-flex; align-items:center; padding:4px 8px; border-radius:999px; font-size:10px; font-weight:800; letter-spacing:.3px; }
.role-admin { background:#e0e7ff; color:#3730a3; }
.role-operator { background:#dcfce7; color:#166534; }
.user-active-check { display:flex; align-items:center; gap:8px; margin:12px 0 2px; font-size:13px; font-weight:700; color:#374151; }
.user-active-check input { width:17px; height:17px; }
.user-modal-card { max-width:460px; }
@media(max-width:700px) {
  .user-management-head { align-items:flex-start; flex-direction:column; }
  .user-management-head .small-btn { width:100%; }
  .user-management-card { padding:12px; }
}
