/* Ajuste del CRM: conserva su operativa y el estado de los clientes. */
body.crm-body{margin:0;overflow:hidden;background:#f6f7f2}
.crm.crm-fit{height:100dvh;min-height:0;display:grid;grid-template-rows:60px minmax(0,1fr) 30px;font:12px/1.4 'DM Sans',Arial,sans-serif;background:#f6f7f2;color:#435538;overflow:hidden}
.crm-fit *{box-sizing:border-box}.crm-fit .c-demo{display:none}
.crm-fit h1,.crm-fit h2,.crm-fit h3{font-family:'Barlow Condensed',Arial,sans-serif;font-weight:500;letter-spacing:0;line-height:1.1;margin:0}.crm-fit h1{font-size:30px}.crm-fit h2{font-size:24px}.crm-fit h3{font-size:20px}
.crm-fit .c-header{display:flex;position:static;min-height:0!important;height:60px!important;padding:8px 22px!important;gap:22px;background:#fff}
.c-back-proposal{border:0;background:transparent;color:#6d805e;font:11px 'DM Sans',sans-serif;padding:5px 0;white-space:nowrap}
.crm-fit .c-header>img{width:130px;height:43px}.crm-fit .c-header>span{border:0;padding-left:0;font-size:11px;color:#98a28c}.crm-fit .c-user{font-size:10px}.crm-fit .c-user small{font-size:9px}.crm-fit .c-user>b{width:29px;height:29px}
.crm-fit .c-shell{grid-template-columns:194px minmax(0,1fr);min-height:0;overflow:hidden}.crm-fit .c-sidebar{padding:22px 14px;background:#fff;min-height:0}.crm-fit .c-nav-label{font-size:8px;padding:0 10px 20px}.crm-fit .c-sidebar nav button{padding:12px 10px;font-size:11px;margin:0}.crm-fit .c-sidebar-bottom{padding-top:10px}.crm-fit .c-sidebar-bottom p{font-size:10px;line-height:1.5;margin:7px 0 12px}
.crm-fit .c-main{display:flex;flex-direction:column;padding:17px 22px 14px;min-height:0;overflow:hidden;gap:0}
.crm-fit .c-page-title{margin:0 0 13px;flex:none;align-items:center;min-height:0}.crm-fit .c-overline{font-size:8px;letter-spacing:1px}.crm-fit .c-page-title h1{margin:5px 0 0}.crm-fit .c-page-title p{font-size:10px;line-height:1.4;margin:5px 0 0}
.crm-fit .c-btn{padding:7px 10px;font-size:10px;min-height:28px;border-radius:5px;line-height:1.3}.crm-fit .c-toolbar{gap:10px;flex-wrap:nowrap;margin-bottom:12px;flex:none}.crm-fit .c-toolbar input,.crm-fit .c-toolbar select{padding:7px 9px;font-size:11px;min-height:31px;margin:0}.crm-fit .c-toolbar>input{max-width:320px;min-width:120px}.crm-fit .c-toolbar>select{width:150px;flex:none}.crm-fit .c-toolbar label{min-width:190px}.crm-fit .c-toolbar>span{font-size:9px}
.crm-fit .c-metrics{gap:9px;margin-bottom:12px;flex:none}.crm-fit .c-metrics>div{padding:10px 12px;gap:4px;border-radius:6px}.crm-fit .c-metrics span{font-size:9px}.crm-fit .c-metrics strong{font:30px/1.1 'Barlow Condensed',sans-serif;color:#456036;letter-spacing:0}.crm-fit .c-metrics small{font-size:8px;line-height:1.3}
.crm-fit .c-card{padding:14px;border-radius:6px;min-height:0}.crm-fit .c-card-title{margin-bottom:11px;gap:10px;flex:none}.crm-fit .c-card-title p{font-size:10px;margin-top:5px}.crm-fit .c-two{gap:12px;min-height:0;grid-template-columns:minmax(0,1.2fr) minmax(260px,1fr);align-items:stretch}
.crm-fit[data-view=today] .c-main>.c-two{flex:1;min-height:0}.crm-fit[data-view=today] .c-two>.c-card{display:flex;flex-direction:column;min-height:0;overflow:auto}.crm-fit .c-scroll{min-height:0;max-height:none;overflow:auto;flex:1}.crm-fit .c-task{padding:11px 0;gap:10px;flex-wrap:nowrap}.crm-fit .c-task-date{min-width:50px;padding:7px 5px}.crm-fit .c-task-date b{font-size:11px}.crm-fit .c-task-date small{font-size:8px}.crm-fit .c-task-info>p{font-size:10px;line-height:1.4;margin:5px 0}.crm-fit .c-task-info>small{font-size:9px}.crm-fit .c-context{font-size:9px;line-height:1.4;padding:6px}.crm-fit .c-task-actions{width:auto;flex:none;flex-direction:column;padding:0;gap:9px}.crm-fit .c-task-actions .c-btn{font-size:9px;padding:6px 8px}.crm-fit .c-text-link{font-size:11px}.crm-fit .c-tag{font-size:8px;padding:4px 6px}.crm-fit .c-alert{padding-bottom:11px;margin-bottom:11px;gap:9px}.crm-fit .c-alert b{font-size:11px}.crm-fit .c-alert p{font-size:10px;margin:5px 0}.crm-fit .c-alert small{font-size:9px}.crm-fit .c-soft{padding:10px 12px;margin:9px 0;border-radius:5px}.crm-fit .c-soft p{font-size:10px;line-height:1.5;margin:5px 0 9px}.crm-fit .c-soft b{font-size:10px}
.crm-fit .c-table-card{padding:0;flex:1;min-height:0;overflow:hidden}.crm-fit #c-client-results{height:100%;overflow:auto}.crm-fit table{font-size:10px;line-height:1.4}.crm-fit th{padding:9px 11px;font-size:8px;position:sticky;top:0;z-index:1}.crm-fit td{padding:9px 11px;font-size:10px}.crm-fit td small{font-size:8px;line-height:1.4}.crm-fit .c-avatar{width:30px;height:30px;font-size:10px}.crm-fit .c-client-name{gap:9px}.crm-fit .c-client-name b{font-size:11px}.crm-fit .c-client-name small{font-size:8px}.crm-fit .c-table-scroll{min-height:0}
.crm-fit .c-back{margin:0 0 8px;font-size:10px!important;flex:none;align-self:start}.crm-fit .c-customer-head{gap:12px;margin-bottom:11px;flex:none;align-items:center}.crm-fit .c-customer-head h1{font-size:28px;margin:5px 0 0}.crm-fit .c-customer-head p{font-size:9px;line-height:1.4;margin:5px 0 0}.crm-fit .c-avatar.large{width:42px;height:42px;font-size:14px;flex:none}.crm-fit .c-customer-head>.c-actions{max-width:none;flex:none}
.crm-fit .c-tabs{gap:17px;flex:none;margin:0 0 12px;padding:0;overflow-x:auto;min-height:35px}.crm-fit .c-tabs button{font-size:10px;padding:8px 0 10px;margin:0;line-height:1.3}.c-mobile-client-tab,.c-mobile-navigation{display:none}
.crm-fit .c-detail-body{min-height:0;flex:1;overflow:auto;display:flex;flex-direction:column;gap:0;overscroll-behavior:contain}.crm-fit .c-detail-body>.c-two{flex:1;min-height:0}.crm-fit .c-detail-body>.c-two>.c-card{min-height:0;overflow:auto}.crm-fit .c-detail-body>.c-card{flex:1;min-height:0;overflow:auto}.crm-fit .c-detail-body .c-metrics{margin-bottom:10px}.crm-fit .c-data-pairs>div{padding:9px 0;font-size:10px}.crm-fit .c-product-mini{padding:7px 0;gap:9px}.crm-fit .c-product-mini img{height:38px;width:25px}.crm-fit .c-product-mini b{font-size:10px}.crm-fit .c-product-mini small{font-size:8px}.crm-fit .c-subheading{font-size:20px;margin:12px 0 5px}.crm-fit .c-next{padding:0 0 11px;margin:9px 0 12px}.crm-fit .c-next h3{font-size:18px;line-height:1.25;margin:7px 0 9px}.crm-fit .c-next .c-btn{margin-left:7px}.crm-fit .c-timeline{margin-top:11px}.crm-fit .c-timeline article{gap:10px;padding-bottom:15px}.crm-fit .c-timeline-mark{width:26px;height:26px;font-size:12px}.crm-fit .c-timeline article:before{left:12px;top:26px}.crm-fit .c-event h3{font-size:18px;line-height:1.25;margin:5px 0}.crm-fit .c-event p{font-size:10px;line-height:1.5;margin:6px 0}.crm-fit .c-event small,.crm-fit .c-event-meta time{font-size:8px}.crm-fit .c-event-meta b{font-size:9px}.crm-fit .c-chips{gap:5px;flex-wrap:wrap}.crm-fit .c-chips button{font-size:9px;padding:6px 8px;margin:0}.crm-fit .c-caption{font-size:9px;line-height:1.5}
.c-agenda-tabs{display:flex;align-items:center;gap:7px;margin-bottom:12px;flex:none}.c-agenda-tabs small{font-size:9px;margin-left:auto}.crm-fit .c-agenda-list{flex:1;min-height:0;overflow:auto}.crm-fit[data-view=quotes] .c-main>.c-card{flex:1;min-height:0;overflow:auto}.crm-fit .c-quote-grid{gap:11px;grid-template-columns:repeat(3,minmax(0,1fr))}.crm-fit .c-quote{padding:13px;min-width:0}.crm-fit .c-quote h3{font-size:24px;margin:12px 0 8px}.crm-fit .c-quote p{font-size:10px;line-height:1.5}.crm-fit .c-quote strong{font-size:21px}.crm-fit .c-quote .c-btn{font-size:9px;margin:3px 4px 0 0}.crm-fit .c-catalog-layout{flex:1;min-height:0;overflow:hidden;grid-template-columns:minmax(0,1fr) 270px;align-items:stretch;gap:12px}.crm-fit .c-catalog-grid{overflow:auto;align-content:start;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.crm-fit .c-wine{padding:11px}.crm-fit .c-wine-photo{height:115px}.crm-fit .c-wine-photo img{height:105px}.crm-fit .c-wine h3{font-size:21px;min-height:44px}.crm-fit .c-wine p{font-size:9px}.crm-fit .c-selection{position:static;overflow:auto;min-height:0}.crm-fit .c-selection-line{padding:10px 0}.crm-fit .c-selection-total{margin:12px 0}.crm-fit .c-selection-total>b{font-size:24px}.crm-fit .c-wine>.c-btn{font-size:9px;padding:6px;width:100%;margin-top:8px}
.crm-fit .c-footer{padding:5px 20px;font-size:8px;line-height:1.3;gap:10px;min-height:0;display:flex;align-items:center}
@media(min-width:1101px) and (max-height:760px){.crm-fit .c-main{padding:12px 20px}.crm-fit .c-page-title{margin-bottom:10px}.crm-fit h1{font-size:28px}.crm-fit .c-card{padding:12px}.crm-fit .c-metrics>div{padding:8px 10px}.crm-fit .c-metrics strong{font-size:26px}.crm-fit .c-customer-head h1{font-size:26px}.crm-fit .c-metrics small{display:none}}
@media(max-width:1100px) and (min-width:761px){.crm-fit .c-shell{grid-template-columns:160px minmax(0,1fr)}.crm-fit .c-main{padding:14px}.crm-fit .c-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-fit .c-quote-grid{grid-template-columns:1fr 1fr}.crm-fit .c-customer-head .c-actions{gap:5px}.crm-fit .c-customer-head .c-btn{font-size:9px;padding:7px}.crm-fit .c-tabs{gap:12px}.crm-fit .c-tabs button{font-size:9px}}
@media(max-width:760px){
.crm.crm-fit{display:grid;grid-template-rows:50px minmax(0,1fr) 29px;height:100dvh;min-height:0;padding:0;overflow:hidden}.crm-fit .c-header{height:50px!important;padding:7px 10px!important;gap:10px;flex-wrap:nowrap}.crm-fit .c-header>img{width:80px;height:31px}.c-back-proposal{font-size:9px}.crm-fit .c-user,.crm-fit .c-header>span{display:none}.c-mobile-navigation{display:block!important;margin-left:auto;min-width:0;max-width:135px;padding:6px;font:11px 'DM Sans',sans-serif;color:#526c43;border:1px solid #d7e1cb;background:#fff;border-radius:5px}
.crm-fit .c-shell{display:block;overflow:hidden;min-height:0}.crm-fit .c-sidebar{display:none!important}.crm-fit .c-main{height:100%;padding:12px 11px;overflow:hidden}.crm-fit .c-page-title{margin-bottom:10px;display:flex;flex-wrap:nowrap;align-items:center;gap:8px}.crm-fit .c-page-title h1{font-size:26px;margin:0}.crm-fit .c-overline{font-size:7px}.crm-fit .c-page-title .c-overline{display:none}.crm-fit .c-page-title p{font-size:9px;line-height:1.4;margin:4px 0 0}.crm-fit .c-page-title .c-actions{width:auto;flex:none}.crm-fit .c-page-title .c-actions .c-btn{font-size:9px;max-width:112px;white-space:normal;padding:7px 8px;line-height:1.3}.crm-fit .c-metrics{gap:6px;grid-template-columns:1fr 1fr;margin-bottom:9px}.crm-fit .c-metrics>div{padding:7px 10px;gap:3px}.crm-fit .c-metrics strong{font-size:25px}.crm-fit .c-metrics span{font-size:9px}.crm-fit .c-metrics small{display:none}.crm-fit .c-two{display:flex;flex-direction:column;gap:10px}.crm-fit .c-two>.c-card{width:100%}.crm-fit[data-view=today] .c-two{overflow:auto;display:block}.crm-fit[data-view=today] .c-two>.c-card{height:auto;overflow:visible;margin-bottom:10px}.crm-fit[data-view=today] .c-scroll{max-height:240px;min-height:0;overflow:auto}.crm-fit .c-card{padding:12px}.crm-fit .c-card h2{font-size:22px}.crm-fit .c-card-title{gap:7px;flex-wrap:nowrap;margin-bottom:10px}.crm-fit .c-card-title .c-btn{font-size:9px;white-space:normal;padding:6px 8px}.crm-fit .c-task{gap:8px;flex-wrap:wrap;padding:10px 0}.crm-fit .c-task-date{min-width:45px}.crm-fit .c-task-info{min-width:180px}.crm-fit .c-task-actions{flex-direction:row;width:100%;justify-content:space-between;padding-left:53px;gap:7px}.crm-fit .c-task-info>p{font-size:10px}.crm-fit .c-context{font-size:8px}
.crm-fit .c-toolbar{flex-wrap:wrap;gap:6px;margin-bottom:9px}.crm-fit .c-toolbar>input{max-width:none;flex-basis:100%;width:100%;font-size:16px;padding:7px}.crm-fit .c-toolbar>select{font-size:11px;padding:6px;width:145px}.crm-fit .c-toolbar>span{font-size:8px;margin-left:auto}.crm-fit .c-table-card{padding:0}.crm-fit .c-client-mobile{padding:0 11px}.crm-fit .c-client-mobile>article{padding:13px 0}.crm-fit .c-client-mobile .c-inline{margin-bottom:9px;gap:8px}.crm-fit .c-mobile-history{margin:10px 0;font-size:9px}.crm-fit .c-mobile-history b{font-size:11px}.crm-fit .c-mobile-next{margin:9px 0;padding:8px 10px}.crm-fit .c-mobile-next p{font-size:10px;margin:4px 0}.crm-fit .c-inline>small{font-size:9px}.crm-fit .c-table-scroll table{min-width:590px}.crm-fit .c-customer-head{flex-wrap:wrap;gap:8px;margin-bottom:9px}.crm-fit .c-customer-head>div:not(.c-actions){flex:1;min-width:0}.crm-fit .c-customer-head h1{font-size:25px;margin:4px 0 0}.crm-fit .c-customer-head p{font-size:8px;line-height:1.4}.crm-fit .c-avatar.large{width:35px;height:35px;font-size:12px}.crm-fit .c-customer-head>.c-actions{width:100%;margin:0;display:flex;gap:6px}.crm-fit .c-customer-head>.c-actions .c-btn{font-size:10px;flex:1;max-width:none;white-space:nowrap;padding:7px}.crm-fit .c-back{margin-bottom:8px}.crm-fit .c-tabs{display:none}.c-mobile-client-tab{display:block;flex:none;width:100%;min-height:32px;font:11px 'DM Sans',sans-serif;padding:6px 9px;border:1px solid #d4dfc7;background:#fff;color:#526d43;border-radius:5px;margin:0 0 9px}.crm-fit .c-detail-body{overflow:auto}.crm-fit .c-detail-body>.c-two{flex:none;overflow:visible}.crm-fit .c-detail-body>.c-two>.c-card{overflow:visible;flex:none}.crm-fit .c-detail-body>.c-card{flex:none;overflow:visible}.crm-fit .c-event h3{font-size:18px}.crm-fit .c-chips{flex-wrap:wrap;gap:4px}.crm-fit .c-chips button{font-size:8px;padding:5px 7px}.crm-fit .c-next h3{font-size:18px}.crm-fit .c-next .c-btn{font-size:9px;margin-left:5px}.c-agenda-tabs{gap:6px;margin-bottom:9px}.c-agenda-tabs small{display:none}.c-agenda-tabs .c-btn{font-size:10px}.crm-fit .c-quote-grid{grid-template-columns:1fr;gap:10px}.crm-fit .c-quote h3{font-size:23px}.crm-fit .c-catalog-layout{display:flex;flex-direction:column;overflow:auto;gap:10px}.crm-fit .c-catalog-grid{flex:none;overflow:visible;grid-template-columns:1fr 1fr;gap:7px;order:0}.crm-fit .c-selection{flex:none;overflow:visible;order:1}.crm-fit .c-wine-photo{height:120px}.crm-fit .c-wine-photo img{height:110px}.crm-fit .c-wine h3{font-size:21px}.crm-fit .c-wine{padding:9px}.crm-fit .c-toolbar>label{min-width:0;flex-basis:100%;font-size:9px}.crm-fit .c-toolbar>label select{font-size:12px}.crm-fit .c-toolbar>div{font-size:10px;width:100%;margin:0}.crm-fit .c-toolbar>div small{font-size:8px}.crm-fit .c-footer{padding:4px 10px;font-size:7px}.crm-fit .c-footer>span:first-child{max-width:235px}.crm-fit .c-footer>span:last-child{max-width:100px;text-align:right}
.c-modal .c-dialog input,.c-modal .c-dialog textarea,.c-modal .c-dialog select{font-size:16px}.c-modal{max-height:94dvh;padding:18px 14px}.c-dialog h2{font-size:22px}
}
