/* =========================================================
   mrThao TableOPS
   common.css
   ---------------------------------------------------------
   Algemene componenten
   V1.2 (Quiet UI)
   ========================================================= */
/* =========================================================
   APP
   ========================================================= */
.mrthao-tableops-app{
    font-family:Arial,sans-serif;
    background:transparent;
    border:none;
    border-radius:0;
    padding:0;
    color:#0b2545;
}

.mrthao-tableops-app *{
    box-sizing:border-box;
}

/* =========================================================
   mrThao Design Standards
   ========================================================= */

:root{

    /* Brand Colors */
    --mto-primary:          #0F4C81;  /* Donkerblauw */
    --mto-sky:              #0163FF;  /* Primary actieblauw */

    /* Quiet UI Colors */
    --mto-action-bg:        #F7FAFF;
    --mto-action-bg-hover:  #EAF4FF;
    --mto-action-bg-active: #DCEBFF;
    --mto-action-border:    #79AFFF;
    --mto-action-text:      #0163FF;
    --mto-focus-ring:       rgba(1, 99, 255, .22);

    /* Basic Colors */
    --mto-white:            #FFFFFF;
    --mto-text:             #0B2545;
    --mto-border:           #D6E8F8;
    --mto-light:            #EAF4FF;

    /* Table Status */
    --mto-free:             #63B95A;
    --mto-occupied:         #F39C12;
    --mto-reserved:         #3F95D2;
    --mto-linked:           #F6C25B;

}

/* =========================================================
   BASIS LAYOUT
   ========================================================= */


/* =========================================================
   CONTENT BLOKKEN
   ========================================================= */
.mto-block{
    background:#ffffff;
    border:1px solid #d6e8f8;
    border-radius:14px;
    padding:18px;
    box-shadow:0 1px 4px rgba(0,0,0,.05);
}

.mto-main{
    width:100%;
    padding:0;
    margin:0;
    background:transparent;
    border:none;
}

/* =========================================================
   BLOCK HEADER
   ========================================================= */
.mto-block-header{
    margin-bottom:18px;
}

.mto-block-title{
    font-family:Georgia,serif;
    color:var(--mto-primary);
    font-size:28px;
    margin:0;
}

.mto-block-subtitle{
    color:#355f82;
    font-size:14px;
    margin-top:4px;
}

.mto-block-footer{
    margin-top:20px;
}

/* =========================================================
   BUTTONS
   Primary en secondary BUTTONS
   ========================================================= */
.mto-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-height:42px;
    padding:10px 18px;

    border-radius:9px;

    font-size:16px;
    font-weight:600;
    line-height:1.2;

    white-space:nowrap;
    cursor:pointer;

    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        box-shadow .18s ease,
        transform .08s ease;
}

/* =========================================================
   PRIMARY BUTTON
   Belangrijke acties: blauw, oranje hover
   ========================================================= */

.mrthao-tableops-app .mto-btn.mto-btn-primary {
    background-color: var(--mto-sky) !important;
    color: var(--mto-white) !important;
    border: 1px solid var(--mto-sky) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .16) !important;
}

.mrthao-tableops-app .mto-btn.mto-btn-primary:hover,
.mrthao-tableops-app .mto-btn.mto-btn-primary:focus-visible {
    background-color: var(--mto-occupied) !important;
    color: var(--mto-white) !important;
    border-color: var(--mto-occupied) !important;
    outline: none;
}

.mrthao-tableops-app .mto-btn.mto-btn-primary:active {
    background-color: #d8890f !important;
    border-color: #d8890f !important;
    transform: translateY(1px);
}

.mto-btn-secondary{
    background:var(--mto-action-bg) !important;
    color:var(--mto-action-text) !important;
    border:1px solid var(--mto-action-border) !important;
    box-shadow:0 1px 3px rgba(15,76,129,.08) !important;
}

.mto-btn-secondary:hover,
.mto-btn-secondary:focus-visible{
    background:var(--mto-action-bg-hover) !important;
    border-color:var(--mto-sky) !important;
    color:var(--mto-primary) !important;
}

.mto-btn:hover{
    background-color:var(--mto-action-bg-hover) !important;
    border-color:var(--mto-sky) !important;
    color:var(--mto-primary) !important;
    box-shadow:0 2px 6px rgba(15,76,129,.12) !important;
}

.mto-btn:focus-visible{
    outline:none;
    background-color:var(--mto-action-bg-hover) !important;
    border-color:var(--mto-sky) !important;
    color:var(--mto-primary) !important;
    box-shadow:
        0 0 0 3px var(--mto-focus-ring),
        0 2px 6px rgba(15,76,129,.12) !important;
}

.mto-btn:active{
    background-color:var(--mto-action-bg-active) !important;
    border-color:var(--mto-primary) !important;
    color:var(--mto-primary) !important;
    transform:translateY(1px);
}

.mto-btn:disabled,
.mto-btn[disabled],
.mto-disabled{
    opacity:.50;
    cursor:not-allowed;
    pointer-events:none;
}

.mto-full{
    width:100%;
    margin:4px 0;
}

/* =========================================================
   PANEEL OPMAAK
   ========================================================= */

.mto-muted{
    font-size:12px;
    color:#60778f;
}

.mto-kv{
    display:flex;
    justify-content:space-between;
    border-bottom:1px solid #e8f0f8;
    padding:10px 0;
}

.mto-actions{
    display:flex;
    gap:8px;
    margin-top:14px;
}

/* =========================================================
   FORMULIEREN
   ========================================================= */
.mto-inline{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}

/* =========================================================
   MENU
   ========================================================= */
.mto-menu{
    max-height:310px;
    overflow:auto;
    border:1px solid #d8e9f8;
    border-radius:9px;
    background:#ffffff;
}

.mto-menu details{
    border-bottom:1px solid #e8f0f8;
}

.mto-menu summary{
    padding:13px 16px;
    background:var(--mto-light);
    color:var(--mto-primary);
    font-size:17px;
    font-weight:700;
    cursor:pointer;
}

/* =========================================================
   MENU ITEMS
   ========================================================= */
.mto-menu-item{
    display:grid;
    grid-template-columns:1fr auto 42px;
    gap:8px;
    align-items:center;
    padding:12px;
    border-top:1px solid #edf3f9;
}

.mto-menu-item span{
    font-weight:700;
    font-size:14px;
}

.mto-menu-item b{
    color:#0f4c81;
}

.mto-menu-item button,
.mto-actions button{
    background:var(--mto-action-bg);
    color:var(--mto-action-text);
    border:1px solid var(--mto-action-border);
    border-radius:9px;
    min-height:40px;
    padding:9px 14px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 1px 3px rgba(15,76,129,.08);
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        box-shadow .18s ease,
        transform .08s ease;
}

.mto-menu-item button:hover,
.mto-actions button:hover{
    background:var(--mto-action-bg-hover);
    border-color:var(--mto-sky);
    color:var(--mto-primary);
    box-shadow:0 2px 6px rgba(15,76,129,.12);
}

.mto-menu-item button:focus-visible,
.mto-actions button:focus-visible{
    outline:none;
    background:var(--mto-action-bg-hover);
    border-color:var(--mto-sky);
    color:var(--mto-primary);
    box-shadow:
        0 0 0 3px var(--mto-focus-ring),
        0 2px 6px rgba(15,76,129,.12);
}

.mto-menu-item button:active,
.mto-actions button:active{
    background:var(--mto-action-bg-active);
    border-color:var(--mto-primary);
    transform:translateY(1px);
}

/* =========================================================
   ORDER INFORMATIE
   ========================================================= */
.mto-order-lines{
    min-height:28px;
    font-size:13px;
    color:#455b70;
}

.mto-pay{
    font-size:12px;
    color:#60778f;
}

.mto-message{
    margin-top:8px;
    padding:10px;
    border-radius:8px;
    background:#d7eefc;
    color:#0f4c81;
    font-size:13px;
}

/* =========================================================
   STATUS / MELDINGEN
   ========================================================= */
#mto-status-message{
    min-height:24px;
    margin-top:10px;
    font-weight:600;
}

/* =========================================================
   ORDER BUFFER
   ========================================================= */
.mto-order-buffer{
    margin-top:20px;
    padding:15px;
    border:1px solid #d8e4f2;
    border-radius:10px;
    background:#ffffff;
}

.mto-order-buffer h3{
    margin:0 0 10px;
    color:#0f4c81;
}

#mto-buffer-items{
    min-height:60px;
    margin-bottom:15px;
}

.mto-buffer-row{
    display:flex;
    justify-content:space-between;
    padding:4px 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:768px){
    .mto-columns{
        grid-template-columns:1fr;
        row-gap:24px;
    }
    .mto-column{
        width:100%;
        min-width:0;
    }
}

@media(max-width:768px){
    .mto-screen-actions{
        grid-template-columns:1fr;
    }
}

/* =========================================================
   ALGEMENE UTILITIES
   ========================================================= */
.mto-hidden{
    display:none !important;
}

.mto-text-center{
    text-align:center;
}

.mto-full-width{
    width:100%;
}

.mto-disabled{
    opacity:.50;
    pointer-events:none;
}

/* ==========================================================
   TableOPS Layout V3
   ========================================================== */
.mto-columns{
    display:grid;
    grid-template-columns:
        minmax(0, 34fr)
        minmax(0, 42fr)
        minmax(0, 24fr);

    align-items:start;
    column-gap:clamp(36px, 3vw, 64px);
    width:100%;
}

.mto-column{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.mto-column > *{
    width:100%;
}

.mto-column-left{
    flex:0 0 35%;
}

.mto-column-center{
    flex:0 0 43%;
}

.mto-column-right{
    flex:0 0 22%;
}

.mto-shell{
    width:100%;
    display:block;
}

.mto-panel{

    background:var(--mto-white);

    border:1px solid var(--mto-border);

    border-radius:14px;

    padding:18px;

    box-shadow:0 2px 8px rgba(0,0,0,.06);

}

.mto-showtables-wrapper,
.mto-menu-wrapper,
.mto-orderlist-wrapper{
    width:100%;
}

/* =========================================================
   TableOPS responsive kolommen
   Desktop: 3 kolommen
   Mobiel/tablet: onder elkaar
   ========================================================= */

@media screen and (max-width: 900px){

    .mrthao-tableops-app .mto-columns{
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;

        width:100% !important;
        max-width:100% !important;

        gap:24px !important;
    }

    .mrthao-tableops-app .mto-column{
        flex:0 0 auto !important;

        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;

        margin:0 !important;
    }

    .mrthao-tableops-app .mto-column > *{
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
    }
}

/* =========================================================
   EINDE BESTAND
   ---------------------------------------------------------
   Bestand : common.css
   Module  : mrThao TableOPS
   Versie  : V1.2
   Status  : Refactor
   ---------------------------------------------------------
   Bevat uitsluitend algemene componenten.
   Module-specifieke CSS hoort thuis in:

   - showtables.css
   - showmenuitems.css
   - showorderlist.css
   - full.css

   Laatste wijziging:
   15-07-2026
   ========================================================= */
   