.ptpt-wrap{max-width:1400px}.ptpt-wrap h1{margin-bottom:8px}.ptpt-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.ptpt-card,.ptpt-box{background:#fff;border:1px solid #d9e0e7;border-radius:12px;padding:20px;margin:16px 0;box-sizing:border-box}.ptpt-card{display:flex;flex-direction:column;gap:8px}.ptpt-card b{font-size:15px}.ptpt-card strong{font-size:30px}.ptpt-card a{align-self:flex-start;text-decoration:none}.ptpt-form label{display:flex;flex-direction:column;gap:5px;font-weight:600;margin-bottom:12px}.ptpt-form input,.ptpt-form select,.ptpt-form textarea{max-width:100%;padding:9px;border:1px solid #cbd5df;border-radius:6px;box-sizing:border-box;font-weight:400}.ptpt-form textarea{min-height:80px}.ptpt-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ptpt-item-head,.ptpt-item-row{display:grid;grid-template-columns:1.1fr .7fr 2.2fr .95fr .85fr .95fr 38px;gap:6px;align-items:center}.ptpt-item-head{font-weight:700;background:#f2f5f8;padding:8px}.ptpt-item-row{padding:7px 0;border-bottom:1px solid #e5e9ee}.ptpt-item-row input,.ptpt-item-row select{width:100%;min-width:0;padding:7px;box-sizing:border-box}.ptpt-notice{padding:10px 14px;border-radius:7px;background:#edf9f0;margin:10px 0}.ptpt-notice.error{background:#fff0f0}.ptpt-portal-link{display:flex;align-items:center;gap:14px;padding:18px 20px;margin:18px auto;max-width:900px;border:1px solid #d9e0e7;border-radius:12px;background:#fff}.ptpt-portal-link-icon{font-size:28px}.ptpt-portal-link-copy{flex:1;display:flex;flex-direction:column;gap:4px}.ptpt-portal-link-copy strong{font-size:17px}.ptpt-portal-link-copy span{color:#66778a;font-size:13px}.ptpt-portal-link>a{border:1px solid #d8e0e8;border-radius:7px;padding:9px 13px;text-decoration:none}.ptpt-front{max-width:1000px;margin:30px auto;padding:25px;border:1px solid #d9e0e7;border-radius:14px;background:#fff}.ptpt-front-links a{display:inline-block;padding:11px 16px;background:#2563eb;color:#fff;border-radius:7px;text-decoration:none}.ptpt-front-note{max-width:1000px;margin:30px auto;padding:20px;border:1px solid #ddd;border-radius:10px}@media(max-width:1000px){.ptpt-grid,.ptpt-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.ptpt-item-head{display:none}.ptpt-item-row{grid-template-columns:1fr 1fr;}.ptpt-item-row input,.ptpt-item-row select{width:100%}}@media(max-width:650px){.ptpt-grid,.ptpt-cols{grid-template-columns:1fr}.ptpt-portal-link{flex-direction:column;align-items:flex-start}.ptpt-item-row{grid-template-columns:1fr}}

/* v1.0.1 – front-end upravljanje za administratora i urednika zgrada */
.ptpt-front-module{max-width:1200px;margin:30px auto;padding:25px;background:#fff;border:1px solid #d9e0e7;border-radius:14px;box-sizing:border-box}.ptpt-front-module .wrap{max-width:none}.ptpt-front-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.ptpt-front-nav{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0;padding:10px;background:#f5f7fa;border:1px solid #e0e5ea;border-radius:10px}.ptpt-front-nav a{display:inline-block;padding:9px 12px;border-radius:7px;text-decoration:none;color:#2d5f91;background:#fff;border:1px solid #d5dde5}.ptpt-front-nav a.active{background:#2563eb;color:#fff;border-color:#2563eb}.ptpt-front-module .ptpt-box{margin:16px 0}.ptpt-front-module table.widefat{width:100%;box-sizing:border-box}.ptpt-front-module .button{cursor:pointer}.ptpt-front-module .ptpt-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){.ptpt-front-module .ptpt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.ptpt-front-module{margin:15px 8px;padding:15px}.ptpt-front-module .ptpt-grid{grid-template-columns:1fr}.ptpt-front-nav{flex-direction:column}.ptpt-front-nav a{width:100%;box-sizing:border-box}}
/* v1.0.2 – uredniji front-end modul */
.ptpt-front-module{font-family:inherit;max-width:1180px;margin:28px auto;padding:28px 30px;border:1px solid #d9e0e7;border-radius:16px;background:#fff;box-sizing:border-box}.ptpt-front-module .wrap{max-width:none;margin:0;padding:0}.ptpt-front-eyebrow{display:block;font-size:12px;letter-spacing:.12em;font-weight:700;color:#6b7785;text-transform:uppercase;margin-bottom:5px}.ptpt-front-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:20px;border-bottom:1px solid #e5e9ee}.ptpt-front-head h1{margin:0;font-size:32px;line-height:1.15;color:#303943}.ptpt-front-head p{margin:8px 0 0;color:#687585;font-size:15px}.ptpt-back-portal{white-space:nowrap;border:1px solid #d7dee6;border-radius:8px;padding:10px 14px;text-decoration:none;color:#2d5f91;background:#fff}.ptpt-front-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0;padding:0;background:transparent;border:0}.ptpt-front-nav a{display:flex;align-items:center;gap:10px;min-height:52px;padding:10px 14px;border:1px solid #dce2e8;border-radius:10px;background:#f8fafc;color:#394858;text-decoration:none;box-sizing:border-box}.ptpt-front-nav a span{font-size:20px;line-height:1}.ptpt-front-nav a b{font-size:14px;font-weight:600}.ptpt-front-nav a.active{background:#eef4ff;border-color:#8db0ed;color:#1f5fc4}.ptpt-front-welcome{padding:18px 0 8px}.ptpt-front-welcome h2{margin:0;font-size:25px;color:#303943}.ptpt-front-welcome p{margin:6px 0;color:#687585}.ptpt-front-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:10px 0 22px}.ptpt-front-stats a{display:flex;flex-direction:column;gap:4px;padding:16px;border:1px solid #dce2e8;border-radius:10px;text-decoration:none;background:#fff}.ptpt-front-stats strong{font-size:28px;color:#303943}.ptpt-front-stats span{font-size:13px;color:#687585}.ptpt-front-steps{border:1px solid #dce2e8;border-radius:12px;background:#fafbfc;padding:18px 20px}.ptpt-front-steps h3{margin:0 0 10px;font-size:17px}.ptpt-front-steps li{margin:6px 0}.ptpt-front-module .ptpt-form-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.ptpt-front-module #ptpt-items{overflow-x:auto}.ptpt-front-module .ptpt-item-head,.ptpt-front-module .ptpt-item-row{min-width:820px}.ptpt-front-module table.widefat{border:1px solid #dce2e8;border-radius:8px;overflow:hidden}.ptpt-front-module .widefat th{font-weight:600}@media(max-width:850px){.ptpt-front-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.ptpt-front-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ptpt-front-head{flex-direction:column}.ptpt-back-portal{white-space:normal}}@media(max-width:600px){.ptpt-front-module{margin:15px 8px;padding:18px}.ptpt-front-nav{grid-template-columns:1fr}.ptpt-front-stats{grid-template-columns:1fr}.ptpt-front-head h1{font-size:25px}}

/* v1.0.6 – modul nije javna stavka izbornika i koristi vlastiti uredni toolbar */
.ptpt-module-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:4px 0 18px;border-bottom:1px solid #e5e9ee}.ptpt-module-toolbar>div{display:flex;flex-direction:column;gap:4px}.ptpt-module-toolbar strong{font-size:20px;color:#303943}.ptpt-module-toolbar span{font-size:14px;color:#687585}.ptpt-module-toolbar .ptpt-back-portal{white-space:nowrap}@media(max-width:700px){.ptpt-module-toolbar{flex-direction:column;align-items:flex-start}.ptpt-module-toolbar .ptpt-back-portal{white-space:normal}}
.ptpt-item-help{margin:-6px 0 12px;color:#667085;font-size:14px}
.ptpt-item-row input[ name="item_group[]"]{font-size:12px}

/* v1.1.7 – jednostavan obračun: ukupni trošak × udio */
.ptpt-item-row .ptpt-calc-total,.ptpt-item-row .ptpt-calc-share,.ptpt-item-row .ptpt-calc-amount{text-align:center;}
.ptpt-item-row .ptpt-calc-amount{background:#f4f7fa;font-weight:600;}
.ptpt-item-head span:nth-child(4),.ptpt-item-head span:nth-child(5),.ptpt-item-head span:nth-child(6){text-align:center;}
/* v1.1.9 – čišći unos prema konačnom PDF obrascu */
.ptpt-item-head span:nth-child(4),.ptpt-item-head span:nth-child(5),.ptpt-item-head span:nth-child(6){text-align:center;}
.ptpt-item-row .ptpt-calc-total,.ptpt-item-row .ptpt-calc-share,.ptpt-item-row .ptpt-calc-amount{text-align:center;}
.ptpt-item-row .ptpt-calc-amount{background:#f4f7fa;font-weight:600;}

.ptpt-wrap textarea[name="invoice_note"]{min-height:180px;line-height:1.5;white-space:pre-wrap;}
