:root{--primary:#0d9488;--mn-sidebar:#143251;background:#f1f6fc;color:#17324f}.sidebar{width:264px;padding:22px 15px;background:var(--mn-sidebar);overflow:auto}.workspace{margin-left:264px}.brand{background:#fff;border-radius:16px;padding:12px;align-items:center;margin-bottom:18px}.platform-logo{width:220px;max-width:100%;height:76px;object-fit:contain}.brand strong{font-size:13px;color:#254763;margin-top:3px}.brand small{font-size:7px;color:#52778f}.side-label{margin:10px 7px 14px}.portal-menu{display:grid;gap:9px;margin-top:0!important}.portal-category{display:grid;grid-template-columns:44px 1fr 14px;align-items:center;gap:11px;min-height:64px;padding:9px 11px;border:1px solid #ffffff25;border-radius:16px;color:white;text-align:left;box-shadow:inset 0 1px 0 #ffffff30,0 5px 12px #0002;cursor:pointer}.portal-category>span{display:grid;place-items:center;width:42px;height:42px;font-size:26px;border:1px solid #ffffff50;border-radius:13px;background:#ffffff28;box-shadow:inset 0 2px 2px #fff5}.portal-category b{font-size:14px;line-height:1.3}.portal-category i{font-size:24px;font-style:normal}.portal-category:hover{filter:brightness(1.12)}.portal-category.selected{outline:2px solid #72eee1;outline-offset:1px}.category-home{background:linear-gradient(135deg,#177ec6,#12508d)}.category-orders{background:linear-gradient(135deg,#0eae98,#08756c)}.category-customers{background:linear-gradient(135deg,#9260d5,#6633ab)}.category-products{background:linear-gradient(135deg,#d79328,#a86613)}.category-finance{background:linear-gradient(135deg,#dc568c,#aa326a)}.category-business{background:linear-gradient(135deg,#637991,#354d69)}.profile{margin-top:12px}.private-note{margin-top:16px}.topbar{background:white;border-bottom:1px solid #dbe6f2}.topbar>span{font-size:13px}.top-right button{border-radius:10px}.portal-hub{position:fixed;inset:0 0 0 264px;z-index:20;overflow:auto;padding:42px;background:radial-gradient(circle at 95% 0,#c9f1eb,transparent 35%),linear-gradient(145deg,#f5f9ff,#e8f0fb)}.portal-hub[hidden]{display:none}.portal-hub header{max-width:1250px;margin:0 auto 30px}.portal-hub-title{display:flex;gap:20px;align-items:center;margin-top:30px}.portal-hub-title>span{font-size:45px;background:white;border-radius:23px;padding:17px;box-shadow:0 10px 25px #183e7115}.portal-hub-title small{font-size:11px;font-weight:800;letter-spacing:1.5px;color:#54809b}.portal-hub-title h1{font-size:36px;margin:6px 0}.portal-hub-title p{color:#607b93}.portal-tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;max-width:1250px;margin:auto}.portal-tool{display:grid;grid-template-columns:58px 1fr 15px;align-items:center;gap:16px;min-height:118px;padding:20px;background:#fff;border:1px solid #cbdced;border-radius:20px;color:#17324f;text-align:left;box-shadow:0 8px 24px #173c6612;cursor:pointer}.portal-tool:hover{transform:translateY(-2px);border-color:#6bbcaf}.portal-tool>span{font-size:34px;padding:10px;background:#e9f4fb;border-radius:16px}.portal-tool b{font-size:17px;line-height:1.3}.portal-tool i{font-style:normal;font-size:25px;color:#6791a9}.portal-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.portal-welcome h1{font-size:30px;letter-spacing:-.7px;margin:8px 0}.portal-welcome p{color:#637e97;margin:0}.portal-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.portal-summary article{display:grid;grid-template-columns:1fr auto;gap:12px;background:white;border:1px solid #d6e3f1;border-radius:18px;padding:20px;box-shadow:0 7px 20px #1b507009}.portal-summary article>span{grid-column:2;grid-row:1/3;align-self:center;padding:12px;background:#e2f5f1;border-radius:15px;font-size:28px}.portal-summary small{font-size:12px;color:#627a92}.portal-summary strong{font-size:25px;color:#17324f;word-break:break-word}.portal-heading{margin:30px 0 17px;font-size:21px}.portal-home-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:30px}.portal-home-card{position:relative;display:grid;justify-items:start;gap:12px;padding:23px;border:0;border-radius:20px;color:white;text-align:left;min-height:168px;cursor:pointer;box-shadow:0 8px 20px #12345218}.portal-home-card>span{display:grid;place-items:center;width:50px;height:50px;border-radius:15px;background:#ffffff25;font-size:30px}.portal-home-card strong{font-size:18px}.portal-home-card small{font-size:12px;color:#fff}.portal-home-card>b{position:absolute;right:20px;top:22px;font-size:25px}.portal-mobile{display:none}.module-card,.orders-section,.stat,.module-stats article{border-radius:18px!important;border-color:#d6e3f1!important}.login-story{background:radial-gradient(circle at top right,#146c76,#143251 60%)}.login-brand{background:white;border-radius:18px;padding:8px 20px;width:280px;max-width:100%;display:block}.login-platform-logo{width:100%;height:90px;object-fit:contain}.login-story h1 em{color:#5ae2ce}.login-story .eyebrow{color:#8ae7d9}.login-icon{color:#0d9488;background:#e3f5f0}.login-admin a{color:#0d9488}.business-avatar{margin-right:6px}@media(max-width:1000px){.portal-summary{grid-template-columns:repeat(2,1fr)}.portal-home-grid{grid-template-columns:repeat(2,1fr)}.sidebar{width:230px}.workspace{margin-left:230px}.portal-hub{left:230px}.portal-category b{font-size:13px}main{padding:25px 22px}.portal-welcome h1{font-size:25px}}@media(max-width:700px){.sidebar{position:static;width:100%;height:auto;display:block;padding:12px 16px}.brand{margin:0;padding:5px 12px;width:205px;display:flex}.platform-logo{height:54px;width:185px}.brand strong,.brand small,.side-label,.portal-menu,.side-bottom{display:none}.workspace{margin-left:0}.topbar{padding:12px 16px}.topbar>span{font-size:11px}.top-right{gap:5px}main{padding:24px 15px 95px}.mobile-sections{display:none}.portal-welcome{flex-wrap:wrap}.portal-welcome h1{font-size:25px}.portal-welcome .primary{width:100%}.portal-summary{gap:10px}.portal-summary article{padding:14px;gap:9px;grid-template-columns:1fr}.portal-summary article>span{grid-column:1;grid-row:auto;padding:8px;width:40px;font-size:22px}.portal-summary strong{font-size:22px}.portal-home-grid{gap:10px}.portal-home-card{padding:17px;min-height:170px}.portal-home-card strong{font-size:15px}.portal-home-card small{font-size:11px;line-height:1.5}.portal-hub{left:0;padding:22px 15px 105px}.portal-hub-title{gap:13px}.portal-hub-title h1{font-size:27px}.portal-hub-title>span{font-size:32px;padding:13px}.portal-tool-grid{grid-template-columns:repeat(2,1fr);gap:12px}.portal-tool{display:flex;flex-direction:column;justify-content:center;text-align:center;padding:17px 10px;min-height:154px;gap:12px}.portal-tool b{font-size:14px}.portal-tool i{display:none}.portal-mobile{position:fixed;z-index:30;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);padding:8px 6px max(8px,env(safe-area-inset-bottom));background:#fffffffa;border-top:1px solid #d0dfed;box-shadow:0 -6px 20px #14325112}.portal-mobile button{display:grid;justify-items:center;gap:5px;min-height:52px;padding:6px 3px;border:0;border-radius:12px;background:transparent;color:#4f6d89;font-size:10px;font-weight:700}.portal-mobile button>span{font-size:22px}.portal-mobile button.selected{background:#e0f5ef;color:#087c71}.login-brand{width:240px}.login-platform-logo{height:75px}}@media print{.portal-mobile,.portal-hub{display:none!important}}

.business-identity{display:flex;align-items:center;gap:18px;padding:18px 36px;background:#fff;border-bottom:1px solid #dbe6f2}.business-identity>img{width:140px;height:72px;object-fit:contain;flex-shrink:0}.business-identity>img[hidden]{display:none}.business-identity>div{display:grid;gap:6px}.business-identity small{font-size:10px;letter-spacing:1.4px;color:#638197}.business-identity strong{font-size:20px;color:#17324f}.mn-preview{min-height:94px}.mn-preview img{width:160px;height:90px;object-fit:contain}@media(max-width:700px){.business-identity{padding:14px 16px;gap:12px}.business-identity>img{width:100px;height:60px}.business-identity strong{font-size:17px}.business-identity small{font-size:8px}.mn-preview img{width:130px;height:75px}}@media print{.business-identity{display:none!important}}

/* La marca del negocio ocupa el encabezado principal de su menú. */
.sidebar .brand{min-height:128px;justify-content:center;gap:8px}.sidebar .platform-logo{width:220px;height:90px;object-fit:contain}.sidebar .brand strong{font-size:15px;text-align:center;overflow-wrap:anywhere}.sidebar .brand small{font-size:7px}@media(max-width:700px){.sidebar .brand{width:min(280px,100%);min-height:80px;gap:4px;padding:8px 12px;align-items:center}.sidebar .platform-logo{width:220px;max-width:100%;height:64px}.sidebar .brand strong{display:block;font-size:12px}.sidebar .brand small{display:none}}

/* Marca principal amplia y firma de la plataforma junto al usuario. */
.sidebar .brand{padding:10px 6px;min-height:185px;gap:4px;width:100%;overflow:hidden}.sidebar .platform-logo{width:100%;height:150px;max-height:none;object-fit:contain}.sidebar .brand strong{font-size:14px}.sidebar .brand small{display:none}.profile{gap:10px;align-items:center}.profile-platform-logo{width:90px;height:42px;object-fit:contain;background:#fff;border-radius:9px;padding:5px;flex-shrink:0}.profile>div{min-width:0}.profile strong,.profile small{overflow-wrap:anywhere}@media(max-width:700px){.sidebar .brand{width:100%;min-height:135px;padding:9px 6px;gap:5px}.sidebar .platform-logo{width:100%;height:110px}.sidebar .brand strong{font-size:13px}}

.sidebar .brand small{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.45;text-align:center;max-width:100%;font-size:8px;letter-spacing:1px;margin-top:3px}.sidebar .brand small[hidden]{display:none}.private-note{padding:6px 8px!important;margin-top:10px!important;gap:7px!important;min-height:0!important;border-radius:10px!important}.private-note>span{font-size:15px!important}.private-note strong{font-size:10px!important;line-height:1.2!important}.private-note small{font-size:9px!important;line-height:1.2!important;margin-top:2px!important}.side-bottom{margin-top:auto}.profile{padding-top:10px!important;margin-top:9px!important}.mn-preview{flex-direction:column;align-items:center;gap:9px}.mn-preview>p{font-size:10px;line-height:1.5;color:#52778f;text-align:center;overflow-wrap:anywhere;max-width:100%;margin:0}#logoSize{padding:0;accent-color:var(--primary)}#logoSizeValue{font-size:12px;color:#52778f}@media(max-width:700px){.sidebar .brand{min-height:0}.sidebar .brand small{display:block}}

/* Lista de pedidos sin desplazamiento lateral. */
.orders-section{min-width:0;max-width:100%}.orders-section .table-wrap{overflow-x:visible;max-height:none;min-width:0}.orders-section table{table-layout:fixed;white-space:normal;width:100%}.orders-section th,.orders-section td{min-width:0;padding:14px 8px;overflow-wrap:anywhere;white-space:normal}.orders-section th:first-child,.orders-section td:first-child{padding-left:14px}.orders-section th:nth-child(1){width:21%}.orders-section th:nth-child(2){width:19%}.orders-section th:nth-child(3),.orders-section th:nth-child(4),.orders-section th:nth-child(5){width:12%}.orders-section th:nth-child(6){width:9%}.orders-section th:nth-child(7){width:15%}.orders-section .product-name{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip}.orders-section .badge{white-space:normal;line-height:1.4}.orders-section .row-actions{min-width:0;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.orders-section .row-actions button{min-width:0;max-width:100%;width:100%;font-size:11px;padding:7px 4px;white-space:normal;overflow-wrap:anywhere;line-height:1.35}.orders-section .filterbar,.orders-section .table-options{flex-wrap:wrap}.orders-section .filterbar>label{min-width:0}.orders-section .filterbar select{max-width:100%}@media(max-width:1400px){.orders-section .table-wrap{padding:0 14px 16px}.orders-section table,.orders-section tbody{display:block;width:100%}.orders-section thead{display:none}.orders-section tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 14px;padding:17px;border:1px solid #d6e3f1;border-radius:16px;background:white;box-shadow:0 4px 12px #173c6608}.orders-section tbody td{display:block;border:0!important;padding:0!important;min-width:0;font-size:12px;line-height:1.5;text-align:left}.orders-section tbody td::before{content:attr(data-label);display:block;font-size:10px;font-weight:700;color:#637e97;letter-spacing:.3px;margin-bottom:6px}.orders-section tbody td:nth-child(1){grid-column:1/3}.orders-section tbody td:nth-child(2){grid-column:1/-1;grid-row:2}.orders-section tbody td:nth-child(6){grid-column:3;grid-row:1;text-align:right}.orders-section tbody td:nth-child(7){grid-column:1/-1;padding-top:12px!important;border-top:1px solid #e3ecf5!important}.orders-section .client-name{font-size:14px}.orders-section .folio-btn{font-size:13px}.orders-section .balance{font-size:17px}.orders-section .row-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.orders-section .row-actions button{grid-column:auto!important;grid-row:auto!important;font-size:12px;min-height:37px;padding:8px}.orders-section .subtext{white-space:normal}.orders-section .table-footer{flex-wrap:wrap}}@media(max-width:450px){.orders-section tbody tr{gap:10px;padding:13px}.orders-section tbody td{font-size:11px}.orders-section .row-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.orders-section .row-actions button{font-size:11px}.orders-section .badge{padding:5px 6px;font-size:10px}.orders-section .section-head{flex-wrap:wrap;gap:10px}}

.finance-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.finance-cards .module-card{margin:0}.finance-amount{display:block;font-size:26px;margin:15px 0;color:#17324f}.finance-cards dl{display:grid;grid-template-columns:1fr 1fr;gap:9px;font-size:12px;margin:15px 0}.finance-cards dt{color:#638197}.finance-cards dd{margin:0;text-align:right;font-weight:600}.finance-cards progress{width:100%;accent-color:#0d9488;margin-top:14px}.finance-list{display:grid;gap:12px}.finance-list .module-card{margin:0}.finance-list header{display:flex;justify-content:space-between;gap:16px}.finance-list header>div{display:grid;gap:6px}.finance-list small{color:#638197}.finance-list p{margin:10px 0}.finance-controls{display:flex;gap:15px;align-items:center;margin:20px 0}.finance-controls label{max-width:200px}.personal-due{margin-top:22px;margin-bottom:20px}.finance-dialog label[hidden]{display:none}@media(max-width:500px){.finance-cards{grid-template-columns:1fr}.finance-list header{flex-wrap:wrap}.finance-controls{flex-wrap:wrap}}

.planner-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0}.planner-grid{display:grid;gap:12px}.planner-week{grid-template-columns:repeat(7,minmax(0,1fr))}.planner-month{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.planner-day{min-width:0;background:white;border:1px solid #d6e3f1;border-radius:14px;min-height:200px;padding:10px}.planner-day header{display:flex;justify-content:space-between;align-items:center;gap:5px;border-bottom:1px solid #e3ebf3;padding-bottom:9px;margin-bottom:10px}.planner-day header button{font-size:11px;font-weight:700;padding:3px;white-space:normal}.planner-day>p{font-size:11px;color:#8a9cae}.planner-day.today{border-color:#0d9488;background:#f3fcf9}.planner-day.outside{opacity:.55}.planner-event{display:grid;gap:5px;width:100%;text-align:left;background:#f3f6fb;border:1px solid #dde6f1;border-left:4px solid var(--event-color);border-radius:9px;padding:9px;margin:8px 0;color:#17324f;overflow-wrap:anywhere}.planner-event small{font-size:10px;color:#678196}.planner-event strong{font-size:12px;line-height:1.4}.planner-event.done{opacity:.6}.planner-event.done strong{text-decoration:line-through}.planner-month .planner-day{min-height:135px}.planner-day.planner-day{display:block}.planner-grid.planner-day{display:grid;grid-template-columns:1fr}.planner-print-day{margin-top:18px;padding:10px 0;border-bottom:1px solid #ccd9e6;break-inside:avoid}.planner-print-day h3{font-size:15px;margin-bottom:8px}.planner-print-day p{font-size:12px;line-height:1.6}@media(max-width:1200px){.planner-week{grid-template-columns:repeat(2,minmax(0,1fr))}.planner-month{grid-template-columns:repeat(7,minmax(0,1fr))}.planner-month .planner-day{padding:5px}.planner-month .planner-event{padding:5px}.planner-month .planner-event strong{font-size:10px}}@media(max-width:700px){.planner-week,.planner-month{grid-template-columns:1fr}.planner-month .planner-day{min-height:80px;padding:10px}.planner-month .planner-event strong{font-size:12px}.planner-month .outside{display:none}.planner-controls input{max-width:160px}}

.category-agenda{background:linear-gradient(135deg,#297cc2,#28518f)}.portal-category{min-height:58px}.portal-category>span{width:38px;height:38px;font-size:24px}
