/* =====================================
ALTR CAFE UI
===================================== */

:root{
--altr-bg:#f4f1eb;
--altr-card:#ffffff;
--altr-line:rgba(0,0,0,0.08);
--altr-text:#1c1c1c;
--altr-muted:#6e6e6e;

--altr-ordered:#2c5bd8;
--altr-accepted:#c56a19;
--altr-completed:#187648;
--altr-cancelled:#9a9a9a;

--altr-warning:#d69517;
--altr-danger:#c7392f;

--radius:18px;
--shadow:0 8px 28px rgba(0,0,0,0.05);
}

/* =====================================
GLOBAL
===================================== */

.altr-circle-timer{
width:72px;
height:72px;
position:relative;
}
.altr-loader{
height:60px;
display:flex;
align-items:center;
justify-content:center;
font-size:12px;
color:#777;
}
.altr-circle-timer svg{
transform:rotate(-90deg);
}

.altr-circle-time{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
font-family:"Jura";
font-size:14px;
font-weight:600;
}

*{
border-radius:0 !important;
}
.altr-card-headline,
.altr-price,
.altr-chip{
font-family:"Jura",sans-serif;
font-weight:600;
letter-spacing:.04em;
}
.altr-cafe-page{
font-family:"Work Sans",sans-serif;
background:var(--altr-bg);
min-height:100vh;
padding:20px;
color:var(--altr-text);
}

.altr-cafe-page h1,
.altr-cafe-page h2,
.altr-cafe-page h3,
.altr-chip,
.altr-card-badge{
font-family:"Jura",sans-serif;
letter-spacing:.03em;
}

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

.altr-cafe-toolbar{
display:grid;
grid-template-columns:1.3fr 2fr auto;
gap:16px;
align-items:center;

background:var(--altr-card);
border:1px solid var(--altr-line);
border-radius:22px;
padding:16px;
box-shadow:var(--shadow);
margin-bottom:18px;
}

.altr-btn.loading{
pointer-events:none;
opacity:.7;
position:relative;
}

.altr-items-more-btn {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.altr-items-more-btn:hover {
  text-decoration: underline;
}

.altr-popup-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.altr-item-row--popup {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.altr-popup-section-title {
  margin-top: 12px;
}

.altr-btn.loading::after{
content:"";
width:14px;
height:14px;
border:2px solid rgba(255,255,255,.6);
border-top:2px solid white;
border-radius:50%;
position:absolute;
right:10px;
top:50%;
transform:translateY(-50%);
animation:altrspin .7s linear infinite;
}

@keyframes altrspin{
to{transform:translateY(-50%) rotate(360deg);}
}

/* search */

.altr-cafe-search-wrap{
display:flex;
align-items:center;
gap:10px;
border:1px solid var(--altr-line);
border-radius:14px;
padding:0 12px;
background:white;
height:46px;
}

.altr-cafe-search-wrap i{
color:var(--altr-muted);
}

.altr-cafe-input{
border:0;
outline:none;
background:transparent;
width:100%;
font-size:14px;
}

/* counters */

.altr-cafe-counter{
display:flex;
align-items:center;
gap:8px;

background:white;
border:1px solid var(--altr-line);
border-radius:14px;

padding:6px 12px;
font-size:13px;
}

.altr-cafe-counter i{
font-size:14px;
}

.altr-cafe-counter .value{
font-weight:700;
}

/* =====================================
BUTTONS
===================================== */

.altr-btn{
border:0;
outline:none;
cursor:pointer;

font-family:"Work Sans";
font-weight:600;

padding:8px 14px;
border-radius:12px;

display:flex;
align-items:center;
justify-content:center;
gap:6px;

transition:.18s ease;
}

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

.altr-btn--ghost{
background:white;
border:1px solid var(--altr-line);
}

.altr-btn--accept{
background:var(--altr-ordered);
color:white;
}

.altr-btn--complete{
background:var(--altr-completed);
color:white;
}

.altr-btn--cancel{
background:var(--altr-danger);
color:white;
}

.altr-btn--extend{
background:#fff2db;
color:#8c580a;
border:1px solid rgba(190,130,30,.2);
font-size:12px;
padding:6px 10px;
}

/* =====================================
KANBAN GRID
===================================== */

.altr-cafe-board-grid{
display:grid;
grid-template-columns:1fr 1fr 1fr;
gap:16px;
align-items:start;
}

.altr-cafe-column{
background:var(--altr-card);
border:1px solid var(--altr-line);
border-radius:22px;
overflow:hidden;
box-shadow:var(--shadow);
}

/* column header */

.altr-cafe-column__header{
display:flex;
align-items:center;
justify-content:space-between;

padding:16px;
border-bottom:1px solid var(--altr-line);
}

.altr-cafe-column__title{
display:flex;
align-items:center;
gap:10px;
font-size:18px;
}

/* icons per column */

.altr-cafe-column--ordered i{color:var(--altr-ordered);}
.altr-cafe-column--accepted i{color:var(--altr-accepted);}
.altr-cafe-column--completed i{color:var(--altr-completed);}

/* column body */

.altr-cafe-column__body{
padding:14px;
display:grid;
gap:14px;
min-height:260px;
}

/* =====================================
ORDER CARDS
===================================== */

.altr-order-card{
background:white;
border:1px solid var(--altr-line);
border-radius:18px;
padding:14px;
display:grid;
gap:12px;
box-shadow:0 4px 12px rgba(0,0,0,.03);
}

/* card types */

.altr-order-card--ordered{
border-left:4px solid var(--altr-ordered);
}

.altr-order-card--accepted{
border-left:4px solid var(--altr-accepted);
}

.altr-order-card--completed{
border-left:4px solid var(--altr-completed);
}

.altr-order-card--cancelled{
border-left:4px solid var(--altr-cancelled);
opacity:.85;
}

/* top row */

.altr-card-top{
display:flex;
justify-content:space-between;
align-items:center;
}

.altr-card-ids{
display:flex;
gap:6px;
}

.altr-chip{
background:#f2f2f2;
padding:3px 8px;
border-radius:999px;
font-size:11px;
font-weight:700;
}

.altr-chip--muted{
background:#f7f6f2;
color:var(--altr-muted);
}

/* badges */

.altr-card-badge{
padding:4px 8px;
border-radius:999px;
font-size:10px;
font-weight:700;
}

.badge-new{background:#e9f0ff;color:#274bcc;}
.badge-late{background:#fff1d8;color:#9b5e06;}
.badge-overdue{background:#ffe3e0;color:#b22a21;}
.badge-live{background:#fff1d8;color:#8d5607;}
.badge-done{background:#e4f7ec;color:#167244;}
.badge-cancelled{background:#eeeeee;color:#6a6a6a;}

/* guest row */

.altr-card-headline{
display:flex;
justify-content:space-between;
font-weight:600;
}

.altr-card-guest,
.altr-card-room{
display:flex;
align-items:center;
gap:6px;
}

/* meta row */

.altr-card-meta{
display:flex;
gap:14px;
font-size:12px;
color:var(--altr-muted);
}

/* =====================================
PROGRESS BAR
===================================== */

.altr-progress-block{
display:grid;
gap:6px;
}

.altr-progress-line{
display:flex;
justify-content:space-between;
font-size:12px;
color:var(--altr-muted);
}
.altr-cancel-row{
display:flex;
align-items:center;
justify-content:space-between;
font-size:14px;
}

.altr-cancel-name{
font-weight:600;
}

.altr-cancel-time{
color:var(--altr-muted);
font-size:12px;
}
.altr-popup{
position:fixed;
top:0;
left:0;
right:0;
bottom:0;
background:rgba(0,0,0,.35);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.altr-popup.is-visible{
display:flex;
}

.altr-popup-inner{
background:white;
padding:28px;
width:420px;
max-width:90%;
position:relative;
}

.altr-popup-close{
position:absolute;
top:10px;
right:10px;
border:0;
background:none;
font-size:18px;
cursor:pointer;
opacity:.7;
}

.altr-popup-close:hover{
opacity:1;
}
.altr-progress{
width:100%;
height:12px;
background:#eee;
border-radius:999px;
overflow:hidden;
}

.altr-progress__bar{
height:100%;
transition:width .2s ease;
}

.progress-new{background:var(--altr-ordered);}
.progress-late{background:var(--altr-warning);}
.progress-overdue{background:var(--altr-danger);}
.progress-accepted{background:var(--altr-accepted);}

/* =====================================
ITEM LIST
===================================== */

.altr-card-items{
display:grid;
gap:6px;
max-height:160px;
overflow:auto;
}

.altr-item-row{
display:flex;
justify-content:space-between;
font-size:13px;

background:#fbfaf7;
border:1px solid var(--altr-line);
border-radius:10px;

padding:6px 10px;
}

.altr-item-name{
font-weight:500;
}

.altr-item-qty{
font-weight:700;
}

/* notes */

.altr-card-note{
display:flex;
gap:8px;
background:#faf4ea;
border:1px solid rgba(0,0,0,.05);
padding:8px;
border-radius:10px;
font-size:12px;
color:#6d5a3e;
}

/* =====================================
ACTION BUTTONS
===================================== */

.altr-card-actions{
display:grid;
grid-template-columns:7fr 3fr;
gap:10px;
}

.altr-btn{
padding:14px 16px;
font-size:15px;
font-weight:600;
}

.altr-extend-row{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:6px;
}

/* =====================================
COMPLETED CARD EXPAND
===================================== */

.altr-card-toggle{
border:0;
background:#f5f1ea;
padding:8px;
border-radius:10px;
cursor:pointer;
font-size:13px;
}

.altr-card-expandable{
display:none;
gap:10px;
}

.altr-order-card.is-expanded .altr-card-expandable{
display:grid;
}

/* =====================================
EMPTY STATE
===================================== */

.altr-empty-state{
border:1px dashed var(--altr-line);
border-radius:16px;
min-height:160px;

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

gap:8px;
color:var(--altr-muted);
font-size:13px;
}

/* =====================================
PAGINATION
===================================== */

.altr-cafe-pagination{
display:flex;
justify-content:center;
gap:6px;
padding-bottom:14px;
}

.altr-page-btn{
border:1px solid var(--altr-line);
background:white;
border-radius:10px;
min-width:34px;
height:34px;
cursor:pointer;
font-weight:600;
}

.altr-page-btn.is-active{
background:black;
color:white;
}

/* =====================================
CANCELLED SECTION
===================================== */

.altr-cafe-cancelled-wrap{
margin-top:16px;
background:white;
border:1px solid var(--altr-line);
border-radius:22px;
box-shadow:var(--shadow);
}

.altr-cafe-cancelled-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
gap:10px;
padding:14px;
}

/* =====================================
TOAST
===================================== */

.altr-cafe-toast{
position:fixed;
bottom:18px;
right:18px;

background:#333;
color:white;

padding:10px 14px;
border-radius:10px;

opacity:0;
transform:translateY(10px);

transition:.2s ease;
}

.altr-cafe-toast.is-visible{
opacity:1;
transform:translateY(0);
}

.altr-cafe-toast.is-success{
background:#187648;
}

.altr-cafe-toast.is-error{
background:#c7392f;
}

.altr-completed-more-wrap{
display:flex;
justify-content:center;
padding:8px 0 4px;
}

.altr-btn--whatsapp{
text-decoration:none;
}

.altr-btn--whatsapp i{
color:#25D366 !important;
}

/* =====================================
RESPONSIVE
===================================== */

@media(max-width:1200px){

.altr-cafe-board-grid{
grid-template-columns:repeat(3, minmax(0, 1fr));
gap:12px;
}

.altr-cafe-toolbar{
grid-template-columns:1fr;
}

.altr-cafe-page{
padding:14px;
}

.altr-cafe-column__header{
padding:12px;
}

.altr-cafe-column__title{
font-size:15px;
gap:8px;
}

.altr-cafe-column__body{
padding:10px;
gap:10px;
}

.altr-order-card{
padding:10px;
gap:10px;
}

.altr-card-headline{
font-size:13px;
gap:8px;
align-items:flex-start;
flex-direction:column;
}

.altr-card-meta{
gap:8px;
font-size:11px;
flex-wrap:wrap;
}

.altr-card-items{
max-height:120px;
}

.altr-item-row{
font-size:12px;
padding:6px 8px;
}

.altr-btn{
padding:10px 12px;
font-size:13px;
}

.altr-card-actions{
grid-template-columns:1fr;
gap:8px;
}

.altr-extend-row{
grid-template-columns:1fr 1fr;
gap:6px;
}

.altr-circle-timer{
width:58px;
height:58px;
}

.altr-circle-time{
font-size:12px;
}



}

@media(max-width:700px){

.altr-cafe-board-grid{
grid-template-columns:1fr;
}

.altr-card-actions{
grid-template-columns:1fr;
}

.altr-extend-row{
grid-template-columns:1fr 1fr;
}

}